-
Notifications
You must be signed in to change notification settings - Fork 98
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
Ensure compatibility with Java 21 #1615
Changes from all commits
afd69b4
267bf63
0a1ddd8
0484a63
98f66fa
bf14d5f
5f79274
d2946fb
59b6298
161a5d8
dd01d0c
c4982a3
e646154
6ed712f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,15 +49,21 @@ jobs: | |
name: test-report-example-projects | ||
path: /home/runner/work/JGiven/JGiven/example-projects/*/build/reports/tests | ||
if-no-files-found: ignore | ||
- name: Test Java 11 Project | ||
run: source scripts/source_files/helper_functions.sh && runMavenTestOnGivenProject example-projects/java11/pom.xml 1.1-t | ||
- name: Test Java 17 Project | ||
run: source scripts/source_files/helper_functions.sh && runMavenTestOnGivenProject example-projects/java17/pom.xml 1.1-t | ||
- name: Test TestNG Example Project | ||
run: source scripts/source_files/helper_functions.sh && runGradleTestOnGivenProject example-projects/testng/build.gradle 1.1-t | ||
- uses: olafurpg/setup-scala@v14 | ||
with: | ||
java-version: [email protected] | ||
- name: Test Scala Example Project | ||
run: source scripts/source_files/helper_functions.sh && runScalaTest | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install apt-transport-https curl gnupg -yqq | ||
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list | ||
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list | ||
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo -H gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/scalasbt-release.gpg --import | ||
sudo chmod 644 /etc/apt/trusted.gpg.d/scalasbt-release.gpg | ||
sudo apt-get update | ||
sudo apt-get install sbt | ||
source scripts/source_files/helper_functions.sh && runScalaTest | ||
- name: Upload test results html files | ||
continue-on-error: true | ||
if: ${{failure()}} | ||
|
@@ -71,6 +77,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
- name: Load the bash script | ||
run: scripts/local_release_with_version.sh | ||
- name: Run validation | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,10 @@ jobs: | |
GPG_KEY_ID: '[email protected]' | ||
VERSION: '0.0.1-TEST' | ||
steps: | ||
- name: Set up JDK 11 | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '11' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
- name: Set up a server certificate | ||
run: | | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
# Release v2.0.0 | ||
## Breaking changes | ||
## Backward incompatible changes | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, backward incompatible with respect to...? It's a bit confusing. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the previous version. I refraine from using "breaking" because I hope that the changes do not actually break anything There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mean, it's just wording in the end, but "breaking changes" is somehow "well-known"; the new wording seems... a bit off. But probably it's rather on my side than a general issue ;) |
||
* 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. | ||
* JGiven now requires Java 17 | ||
## 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 | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module jgiven.exampleprojects.java17 { | ||
exports com.tngtech.jgiven.exampleprojects.java17; | ||
requires java.base; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
19 will be omitted completely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, 19 was not an LTS release and is thus not supported anymore. Once I've got this, I'd also like to add the two newest versions.