-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support testing of latest quartz versions (#7948)
- Loading branch information
Showing
2 changed files
with
149 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} | ||
} |
Oops, something went wrong.