Skip to content

Commit

Permalink
Support testing of latest quartz versions (#7948)
Browse files Browse the repository at this point in the history
  • Loading branch information
amarziali authored Nov 13, 2024
1 parent 0d284c0 commit 8d7866c
Show file tree
Hide file tree
Showing 2 changed files with 149 additions and 124 deletions.
31 changes: 26 additions & 5 deletions dd-java-agent/instrumentation/quartz-2/build.gradle
Original file line number Diff line number Diff line change
@@ -1,23 +1,44 @@

ext {
latestDepTestMinJavaVersionForTests = JavaVersion.VERSION_11
version40TestMinJavaVersionForTests = JavaVersion.VERSION_11
}
muzzle {
pass {
group = 'org.quartz-scheduler'
module = 'quartz'
versions = "[2.0.0,2.4.0)"
versions = "[2.0.0,)"
assertInverse = true
javaVersion = "11"
}
}

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

addTestSuiteForDir('latestDepTest', 'test')
addTestSuiteForDir('version40Test', 'test')


dependencies {
compileOnly group: 'org.quartz-scheduler', name: 'quartz', version: '2.0.0'
testImplementation group: 'org.quartz-scheduler', name: 'quartz', version: '2.0.0'

latestDepTestImplementation group: 'org.quartz-scheduler', name: 'quartz', version: '2.3.+'
// these dependencies are required for XML configurations when quartz version > 2.2+
latestDepTestImplementation group: 'org.quartz-scheduler', name: 'quartz-jobs', version: '2.3.+'
latestDepTestImplementation group: 'javax.transaction', name: 'jta', version: '1.1'
version40TestImplementation group: 'org.quartz-scheduler', name: 'quartz-jobs', version: '2.4.0'
version40TestImplementation group: 'org.quartz-scheduler', name: 'quartz', version: '+'
version40TestImplementation group: 'javax.transaction', name: 'jta', version: '1.1'
latestDepTestImplementation group: 'org.quartz-scheduler', name: 'quartz-jobs', version: '+'
latestDepTestImplementation group: 'jakarta.transaction', name: 'jakarta.transaction-api', version: '2.0.1'
latestDepTestImplementation group: 'org.quartz-scheduler', name: 'quartz', version: '+'

}

[
compileLatestDepTestGroovy,
compileLatestDepTestJava,
compileVersion40TestGroovy,
compileVersion40TestJava
].each {
it.configure {
setJavaVersion(it, 11)
}
}
Loading

0 comments on commit 8d7866c

Please sign in to comment.