File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
plugin/src/main/plugin-metadata Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,25 @@ allprojects {
84
84
85
85
project. getExtensions(). getExtraProperties(). set(" versions" , VersionProperties . getVersions());
86
86
87
+ configurations {
88
+ agent
89
+ }
90
+
91
+ dependencies {
92
+ agent " org.opensearch:opensearch-agent-bootstrap:${ opensearch_version} "
93
+ agent " org.opensearch:opensearch-agent:${ opensearch_version} "
94
+ agent " net.bytebuddy:byte-buddy:1.17.5"
95
+ }
96
+
97
+ tasks. withType(Test ) {
98
+ dependsOn prepareAgent
99
+ jvmArgs + = [" -javaagent:" + project. layout. buildDirectory. file(" agent/opensearch-agent-${ opensearch_version} .jar" ). get()]
100
+ }
101
+
102
+ task prepareAgent(type : Copy ) {
103
+ from(configurations. agent)
104
+ into " $buildDir /agent"
105
+ }
87
106
}
88
107
89
108
subprojects {
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ grant {
12
12
// Register model
13
13
permission java.net.SocketPermission "*", "connect,resolve";
14
14
15
+ // for accessing Unix domain socket on windows
16
+ permission java.net.NetPermission "accessUnixDomainSocket";
17
+
15
18
// Deploy model
16
19
permission java.lang.RuntimePermission "createClassLoader";
17
20
permission java.lang.RuntimePermission "loadLibrary.*";
You can’t perform that action at this time.
0 commit comments