forked from mockito/mockito
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes mockito#3179 : Add module for Java 21 tests.
- Loading branch information
Mikaël Francoeur
committed
Nov 27, 2023
1 parent
f522f49
commit 44e2040
Showing
3 changed files
with
26 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -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.