Skip to content

Commit

Permalink
Ensure compatibility with Java 21
Browse files Browse the repository at this point in the history
Signed-off-by: l-1squared <30831153+l-1squared@users.noreply.github.com>
  • Loading branch information
l-1squared committed Oct 25, 2024
1 parent f952a0c commit 003b0be
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/jgiven_branch_and_pr_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
ANDROID: true
strategy:
matrix:
java: [ '11', '17', '19']
java: [ '11', '17', '21']
junit: ['4.13.2']
steps:
- name: Ensure chrome is installed
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Release v2.0.0
## Breaking changes
## Backward incompatible changes
* Gradle-Plugin: The jgiven report task now forces execution of test tasks. That is, when the task jgivenTestReport is explicitly requested, for instance via the command line, the test tasks it depends on are also executed. For implementations where the jgiven task is set to finalize a test task (i.e `test.finalizedBy(jgiven)`, the behavior is unchanged.
## Fixed issues:
* The Gradle-Plugin is now configuration-cache compliant [#1527](https://github.com/TNG/JGiven/issues/1527) (big thanks to @jjohannes for basically doing all the work)
* Various dependency updates.
* JGiven is now compatible to Gradle 9
* JGiven is now guaranteed to be compatible with Java 21

# Release v1.3.1
## Fixed issues
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class JGivenPluginShould extends Specification {
repositories { mavenCentral() }
dependencies {
testImplementation 'com.tngtech.jgiven:jgiven-junit:1.2.5'
testImplementation 'com.tngtech.jgiven:jgiven-junit:1.3.1'
testImplementation 'junit:junit:4.13.2'
}
"""
Expand Down Expand Up @@ -59,7 +59,7 @@ class JGivenPluginShould extends Specification {
repositories { mavenCentral() }
dependencies {
testImplementation 'com.tngtech.jgiven:jgiven-junit:1.2.5'
testImplementation 'com.tngtech.jgiven:jgiven-junit:1.3.1'
testImplementation 'junit:junit:4.13.2'
}
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ private void setup() {
Given the_plugin_is_applied() throws IOException {
buildFile.write("plugins { id 'java'; id 'com.tngtech.jgiven.gradle-plugin' }\n");
buildFile.write("repositories { mavenCentral() }\n");
buildFile.write("dependencies { testImplementation 'com.tngtech.jgiven:jgiven-junit:1.2.5' }\n");
buildFile.write("dependencies { testImplementation 'com.tngtech.jgiven:jgiven-junit:1.3.1' }\n");
buildFile.write("dependencies { testImplementation 'junit:junit:4.13.2' }\n");
return self();
}
Expand Down

0 comments on commit 003b0be

Please sign in to comment.