Skip to content

Commit 48b6181

Browse files
committed
Fix ignite-2.0 latestDepTest compilation
1 parent 313b36a commit 48b6181

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
ext {
22
// See https://ignite.apache.org/docs/latest/quick-start/java#running-ignite-with-java-11-or-later
3+
// FIXME: Because of this condition, tests only run in Java 8, and latestDepTest never run, as they require Java 11+.
34
maxJavaVersionForTests = JavaVersion.VERSION_1_8
5+
// ignite 2.17.0+ requires Java 11+
6+
latestDepTestMinJavaVersionForTests = JavaVersion.VERSION_11
47
}
58

69
muzzle {
@@ -21,13 +24,26 @@ muzzle {
2124
apply from: "$rootDir/gradle/java.gradle"
2225

2326
addTestSuiteForDir('latestDepTest', 'test')
27+
addTestSuiteExtendingForDir('latestDepForkedTest', 'latestDepTest', 'test')
28+
// ignite 2.16.0 latest version compatible with Java 8
29+
addTestSuiteForDir('ignite216Test', 'test')
30+
addTestSuiteExtendingForDir('ignite216ForkedTest', 'ignite216Test', 'test')
2431

2532
dependencies {
2633
compileOnly group: 'org.apache.ignite', name: 'ignite-core', version: '2.0.0'
2734

2835
testImplementation group: 'org.apache.ignite', name: 'ignite-core', version: '2.0.0'
2936
testImplementation group: 'org.apache.ignite', name: 'ignite-indexing', version: '2.0.0'
3037

38+
ignite216TestImplementation group: 'org.apache.ignite', name: 'ignite-core', version: '2.16.0'
39+
ignite216TestImplementation group: 'org.apache.ignite', name: 'ignite-indexing', version: '2.16.0'
40+
3141
latestDepTestImplementation group: 'org.apache.ignite', name: 'ignite-core', version: '2.+'
3242
latestDepTestImplementation group: 'org.apache.ignite', name: 'ignite-indexing', version: '2.+'
3343
}
44+
45+
for (task in ['compileLatestDepTestGroovy', 'compileLatestDepForkedTestGroovy']) {
46+
tasks.named(task, GroovyCompile) {
47+
it.javaLauncher = getJavaLauncherFor(11)
48+
}
49+
}

0 commit comments

Comments
 (0)