diff --git a/build-plugins.sh b/build-plugins.sh new file mode 100755 index 0000000..ada7ad2 --- /dev/null +++ b/build-plugins.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Create plugins directory +mkdir -p plugins + +# Build each plugin as a shared library +echo "Building plugins..." + +plugins=( + "cache" + "decrypter" + "encrypter" + "keymanager" + "publisher" + "reqpreprocessor" + "router" + "schemavalidator" + "signer" + "signvalidator" +) + +for plugin in "${plugins[@]}"; do + echo "Building $plugin plugin..." + go build -buildmode=plugin -o "plugins/${plugin}.so" "./pkg/plugin/implementation/${plugin}/cmd/plugin.go" + if [ $? -eq 0 ]; then + echo "✓ Successfully built $plugin plugin" + else + echo "✗ Failed to build $plugin plugin" + fi +done + +echo "All plugins built in ./plugins directory" \ No newline at end of file