diff --git a/.gitlab/prepare-oci-package.sh b/.gitlab/prepare-oci-package.sh index 38ae97ea9506..8a7caea76c2e 100755 --- a/.gitlab/prepare-oci-package.sh +++ b/.gitlab/prepare-oci-package.sh @@ -10,3 +10,4 @@ fi mkdir -p sources cp ../workspace/dd-java-agent/build/libs/*.jar sources/dd-java-agent.jar echo -n "$VERSION" > sources/version +cp ../metadata/requirements.json sources/ diff --git a/metadata/requirements.json b/metadata/requirements.json new file mode 100644 index 000000000000..906934ccffe7 --- /dev/null +++ b/metadata/requirements.json @@ -0,0 +1,83 @@ +{ + "version": 1, + "host": { + "windows": { + "x64": {}, + "x86": {}, + "arm64": {} + }, + "linux": { + "x64": {}, + "arm64": {} + }, + "macos": { + "x64": {}, + "arm64": {} + } + }, + "deny": [ + { + "id": "unsupported_jvm", + "description": "Skip older JVMs", + "cmds": [ + "**/java-1.5*/**/java", + "**/java-1.6*/**/java", + "**/java-6*/**/java", + "**/java-7/**/java" + ], + "args": [], + "envars": null + }, + { + "id": "java8_version", + "description": "Skip java -version command", + "cmds": [ + "**/java" + ], + "args": [ + { + "args": [ + "-version" + ], + "position": 0 + } + ], + "envars": null + }, + { + "id": "java_version", + "description": "Skip java --version command", + "cmds": [ + "**/java" + ], + "args": [ + { + "args": [ + "--version" + ], + "position": 0 + } + ], + "envars": null + }, + { + "id": "apache_solr", + "description": "Skip Apache Solr", + "cmds": [], + "args": [], + "envars": { + "SOLR_HOME": null, + "SOLR_SERVER_DIR": null + } + }, + { + "id": "apache_zooker", + "description": "Skip Apache ZooKeeper", + "cmds": [], + "args": [], + "envars": { + "ZOOBINDIR": null + } + } + ] +}