Skip to content

Commit 8af08e0

Browse files
committed
fix: iast-agent was not using configureCompiler
1 parent e8a27e9 commit 8af08e0

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

dd-java-agent/agent-iast/build.gradle

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,8 @@ plugins {
1111
apply from: "$rootDir/gradle/java.gradle"
1212
apply from: "$rootDir/gradle/version.gradle"
1313

14-
java {
15-
toolchain {
16-
languageVersion.set(JavaLanguageVersion.of(11))
17-
}
18-
sourceCompatibility = JavaVersion.VERSION_1_8
19-
targetCompatibility = JavaVersion.VERSION_1_8
20-
}
21-
2214
tasks.withType(AbstractCompile).configureEach {
23-
// ensure no APIs beyond JDK8 are used
24-
options.release = 8
15+
configureCompiler(it, 11, JavaVersion.VERSION_1_8, "Ensure no APIs beyond JDK8 are used")
2516
}
2617

2718
// First version with Mac M1 support

0 commit comments

Comments
 (0)