Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions dd-java-agent/instrumentation/ignite-2.0/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
ext {
// See https://ignite.apache.org/docs/latest/quick-start/java#running-ignite-with-java-11-or-later
// FIXME: Because of this condition, tests only run in Java 8, and latestDepTest never run, as they require Java 11+.
maxJavaVersionForTests = JavaVersion.VERSION_1_8
// ignite 2.17.0+ requires Java 11+
latestDepTestMinJavaVersionForTests = JavaVersion.VERSION_11
latestDepForkedTestMinJavaVersionForTests = JavaVersion.VERSION_11
}

muzzle {
Expand All @@ -21,13 +25,26 @@ muzzle {
apply from: "$rootDir/gradle/java.gradle"

addTestSuiteForDir('latestDepTest', 'test')
addTestSuiteExtendingForDir('latestDepForkedTest', 'latestDepTest', 'test')
// ignite 2.16.0 latest version compatible with Java 8
addTestSuiteForDir('ignite216Test', 'test')
addTestSuiteExtendingForDir('ignite216ForkedTest', 'ignite216Test', 'test')

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

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

ignite216TestImplementation group: 'org.apache.ignite', name: 'ignite-core', version: '2.16.0'
ignite216TestImplementation group: 'org.apache.ignite', name: 'ignite-indexing', version: '2.16.0'

latestDepTestImplementation group: 'org.apache.ignite', name: 'ignite-core', version: '2.+'
latestDepTestImplementation group: 'org.apache.ignite', name: 'ignite-indexing', version: '2.+'
}

for (task in ['compileLatestDepTestGroovy', 'compileLatestDepForkedTestGroovy']) {
tasks.named(task, GroovyCompile) {
it.javaLauncher = getJavaLauncherFor(11)
}
}
Loading