diff --git a/plugin/build.gradle b/plugin/build.gradle index 9d61257c75c..b7dca718c3c 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -319,7 +319,7 @@ configurations { testArtifacts.extendsFrom testRuntime } task testJar(type: Jar) { - classifier "test" + appendix 'test' from sourceSets.test.output } artifacts { diff --git a/plugin/src/main/plugin-metadata/plugin-security.policy b/plugin/src/main/plugin-metadata/plugin-security.policy index d375ac82323..974c7b373a9 100644 --- a/plugin/src/main/plugin-metadata/plugin-security.policy +++ b/plugin/src/main/plugin-metadata/plugin-security.policy @@ -37,7 +37,7 @@ grant codeBase "${codebase.elasticsearch-rest-client}" { permission java.net.NetPermission "getProxySelector"; }; -grant codeBase "${codebase.httpasyncclient-4.1.2.jar}" { +grant codeBase "${codebase.httpasyncclient}" { // rest client uses system properties which gets the default proxy permission java.net.NetPermission "getProxySelector"; };