Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,14 @@ test {
}

// Tasks for testing on other JDK versions; see https://jakewharton.com/build-on-latest-java-test-through-lowest-java/
[21].each { majorVersion ->
[21, 26].each { majorVersion ->
def jdkTest = tasks.register("testJdk$majorVersion", Test) {
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(majorVersion)
// We prefer toolchains that include jmod files for the Java standard library, like Azul Zulu,
// for better compatibility with WALA / JarInfer.
// Temurin does not include jmod files as of their JDK 24 builds.
vendor = JvmVendorSpec.AZUL
}

description = "Runs the test suite on JDK $majorVersion"
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
asm = "9.3"
check-framework = "4.0.0"
support = "27.1.1"
wala = "1.6.12"
wala = "1.7.0"
Comment thread
msridhar marked this conversation as resolved.
commons-cli = "1.4"
auto-service = "1.1.1"
google-java-format = "1.34.1"
Expand Down
10 changes: 4 additions & 6 deletions jdk-recent-unit-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,15 @@ tasks.withType(Test).configureEach { test ->
// Used by com.uber.nullaway.jdk17.NullAwayModuleInfoTests
"-Dtest.module.path=${configurations.testModulePath.asPath}"
]
// The test module jar is consumed via the synthetic module path above, so every
// JDK-specific Test task needs it built before execution.
dependsOn ':test-java-module:jar'
}

// Disable tasks for specific JDK versions; we only run on the recent JDK version specified above
// Disable tasks for specific JDK versions; we only run on the recent JDK version specified above and newer
tasks.getByName('testJdk17').configure {
onlyIf { false }
}
tasks.getByName('testJdk21').configure {
onlyIf { false }
}

tasks.getByName('test').configure {
// we need this since we don't have an implementation / api dependence on test-java-module
dependsOn ':test-java-module:jar'
}
Loading