Skip to content

Commit f1626ee

Browse files
committed
fix: Make resilience4j modules use configureCompiler
1 parent 8af08e0 commit f1626ee

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

dd-java-agent/instrumentation/resilience4j/resilience4j-2.0/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ idea {
2121
}
2222
}
2323

24-
// Set all compile tasks to use JDK17 but let instrumentation code target 1.8 compatibility
2524
project.tasks.withType(AbstractCompile).configureEach {
26-
setJavaVersion(it, 17)
27-
}
28-
compileJava.configure {
29-
sourceCompatibility = JavaVersion.VERSION_1_8
30-
targetCompatibility = JavaVersion.VERSION_1_8
25+
configureCompiler(
26+
it,
27+
17,
28+
JavaVersion.VERSION_1_8,
29+
"Set all compile tasks to use JDK17 but let instrumentation code target 1.8 compatibility"
30+
)
3131
}
3232

3333
addTestSuiteForDir('latestDepTest', 'test')

dd-java-agent/instrumentation/resilience4j/resilience4j-reactor-2.0/build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ idea {
2323

2424
// Set all compile tasks to use JDK17 but let instrumentation code target 1.8 compatibility
2525
project.tasks.withType(AbstractCompile).configureEach {
26-
setJavaVersion(it, 17)
27-
}
28-
compileJava.configure {
29-
sourceCompatibility = JavaVersion.VERSION_1_8
30-
targetCompatibility = JavaVersion.VERSION_1_8
26+
configureCompiler(
27+
it,
28+
17,
29+
JavaVersion.VERSION_1_8,
30+
"Set all compile tasks to use JDK17 but let instrumentation code target 1.8 compatibility"
31+
)
3132
}
3233

3334
addTestSuiteForDir('latestDepTest', 'test')

0 commit comments

Comments
 (0)