Skip to content

Commit edb9c3e

Browse files
kumarguYeonghyeonKO
authored andcommitted
Support phasing off SecurityManager usage in favor of Java Agent (opensearch-project#1265)
Signed-off-by: Gulshan <[email protected]> Signed-off-by: yeonghyeonKo <[email protected]>
1 parent a8b9b58 commit edb9c3e

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ apply plugin: 'jacoco'
6464
apply plugin: "com.diffplug.spotless"
6565
apply plugin: 'io.freefair.lombok'
6666
apply from: 'gradle/formatting.gradle'
67+
apply plugin: 'opensearch.java-agent'
6768

6869
ext.opensearch_tmp_dir = rootProject.file('build/private/opensearch_tmp').absoluteFile
6970
opensearch_tmp_dir.mkdirs()

qa/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ apply plugin: 'opensearch.testclusters'
1313
apply plugin: 'opensearch.build'
1414
apply plugin: 'opensearch.rest-test'
1515
apply plugin: 'io.freefair.lombok'
16+
apply plugin: 'opensearch.java-agent'
1617

1718
// Disable a few tasks that come with build
1819
build.enabled = false

src/main/plugin-metadata/plugin-security.policy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ grant {
44
permission java.lang.RuntimePermission "accessDeclaredMembers";
55
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
66
permission java.lang.RuntimePermission "setContextClassLoader";
7+
78
};

0 commit comments

Comments
 (0)