Skip to content

Commit 6da67dd

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

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

dd-java-agent/instrumentation/aerospike-4.0/build.gradle

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ muzzle {
1313

1414
apply from: "$rootDir/gradle/java.gradle"
1515

16-
1716
addTestSuiteForDir("latestDepTest", "test")
1817
addTestSuiteForDir("latest7DepTest", "test")
1918
addTestSuiteExtendingForDir("latestDepForkedTest", "latestDepTest", "test")
2019
addTestSuiteExtendingForDir("latest7DepForkedTest", "latest7DepTest", "test")
2120

22-
2321
dependencies {
2422
compileOnly group: 'com.aerospike', name: 'aerospike-client', version: '4.0.0'
2523

@@ -34,9 +32,8 @@ tasks.withType(Test).configureEach {
3432
usesService(testcontainersLimit)
3533
}
3634

37-
// TODO: strange workaround for Groovy?
38-
tasks.matching { it.name.startsWith('compileLatestDep') && it.name.endsWith('Groovy') }.configureEach {
39-
javaLauncher = javaToolchains.launcherFor {
40-
it.languageVersion = JavaLanguageVersion.of(21)
35+
["compileLatestDepTestGroovy", "compileLatestDepForkedTestGroovy"].each { name ->
36+
tasks.named(name, GroovyCompile) {
37+
configureCompiler(it, 21)
4138
}
4239
}

dd-java-agent/instrumentation/junit/junit-5.3/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,8 @@ configurations.matching { it.name.startsWith('test') }.configureEach {
6666
tasks.named("compileLatestDepTestJava", JavaCompile) {
6767
configureCompiler(it, 17, JavaVersion.VERSION_1_8)
6868
}
69+
70+
tasks.named("compileLatestDepTestGroovy", GroovyCompile) {
71+
configureCompiler(it, 17, JavaVersion.VERSION_1_8)
72+
}
73+

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

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

34-
["compileLatestDepTestGroovy", "compileBoot3TestGroovy"].each { name ->
34+
["compileLatestDepTestGroovy", "compileBoot3TestGroovy", "compileBoot3ForkedTestGroovy"].each { name ->
3535
tasks.named(name, GroovyCompile) {
3636
configureCompiler(it, 17)
3737
}

0 commit comments

Comments
 (0)