Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #3179 : Add module for Java 21 tests. #3180

Merged
merged 1 commit into from
Nov 27, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ include(
"osgi-test",
"bom",
"errorprone",
"programmatic-test"
"programmatic-test",
"java21"
)

// https://developer.android.com/studio/command-line/variables#envar
Expand Down
24 changes: 24 additions & 0 deletions subprojects/java21/java21.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apply from: "$rootDir/gradle/dependencies.gradle"
apply from: "$rootDir/gradle/java-test.gradle"

description = "Test suite for Java 21 Mockito"

dependencies {
implementation project.rootProject
testImplementation libraries.junit4
testImplementation libraries.assertj
}

java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}

tasks.named('test') {
if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_21)) {
enabled = false
}
}
Empty file.