Skip to content

Commit 69ccd4a

Browse files
Fixed Groovy compiler settings.
1 parent 6da67dd commit 69ccd4a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

dd-java-agent/instrumentation/jetty/jetty-client/jetty-client-12.0/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ tasks.named("compileMain_java17Java", JavaCompile) {
1919
configureCompiler(it, 17, JavaVersion.VERSION_17)
2020
}
2121

22+
tasks.named("compileTestGroovy", GroovyCompile) {
23+
configureCompiler(it, 17)
24+
}
25+
2226
configurations.matching { it.name.startsWith('test') || it.name.startsWith('latestDepTest') }.configureEach {
2327
it.resolutionStrategy {
2428
force group: 'org.slf4j', name: 'slf4j-api', version: libs.versions.slf4j.get()

dd-java-agent/instrumentation/spring/spring-boot-1.3/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ addTestSuiteExtendingForDir("boot2LatestDepForkedTest", "boot2LatestDepTest", "t
3131
addTestSuiteExtendingForDir("boot3ForkedTest", "boot3Test", "test")
3232
addTestSuiteExtendingForDir("latestDepForkedTest", "latestDepTest", "test")
3333

34-
["compileLatestDepTestGroovy", "compileBoot3TestGroovy", "compileBoot3ForkedTestGroovy"].each { name ->
34+
[
35+
"compileLatestDepTestGroovy",
36+
"compileLatestDepForkedTestGroovy",
37+
"compileBoot3TestGroovy",
38+
"compileBoot3ForkedTestGroovy"
39+
].each { name ->
3540
tasks.named(name, GroovyCompile) {
3641
configureCompiler(it, 17)
3742
}

0 commit comments

Comments
 (0)