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

Set Java11 as minimal version #1151

Conversation

abelsromero
Copy link
Member

@abelsromero abelsromero commented Mar 22, 2023

Kind of change

  • Bug fix
  • New non-breaking feature
  • New breaking feature
  • Documentation update
  • Build improvement

Description

What is the goal of this pull request?

Remove support for Java 8 and set 11 as de minimal version.
Java8 is EOL and I don't think we should promote using it.

How does it achieve that?

  • Remove use of 'task.options.release' for Java version configuration in favour of Gradle's preferrs 'toolchain'.
  • Removed Java 8 from pipelines.
    Also:
  • Bump Gradle to latest v8.0.2
  • Remove use of 'io.spring.dependency-management' Gradle plugin in 'spring-boot' app in favor of Gradle's BOM support. This reduces maintenance since only Boot version needs to be updated.
  • Enables CI pipelines for Java 19 on macos and Windows.

Are there any alternative ways to implement this?

task.options.release still works, but Gradle docs suggest using the new toolchain configuration as this is the "preferred".

Are there any implications of this pull request? Anything a user must know?

Users using Java 8 should stay in 2.5.x until they upgrade their apps.

Issue

If this PR fixes an open issue, please add a line of the form:

Fixes #1150

Release notes

Please add a corresponding entry to the file CHANGELOG.adoc

@abelsromero
Copy link
Member Author

Should we create a "Breaking changes" section in the CHANGELOG? I think it'd make the release notes much more simple when the time comes.

@abelsromero abelsromero marked this pull request as draft March 22, 2023 10:56
@abelsromero abelsromero force-pushed the issue-1150-set-java-11-as-minimal-support branch from 75b048b to 38e22bc Compare March 22, 2023 11:00
@abelsromero
Copy link
Member Author

Running tests in my repo to see if we can find a workaround for the Windows+Java17 issue.

* Remove use of 'task.options.release' for Java version configuration
in favour of Gradle's preferrs 'toolchain'.
* Removed Java 8 from pipelines.
* Bump Gradle to latest v8.0.2
* Remove use of 'io.spring.dependency-management' Gradle plugin in
'spring-boot' app in favor of Gradle's BOM support. This reduces
maintenance since only Boot version needs to be updated.

Fixes asciidoctor#1150

Remove unnecessary configurations
@abelsromero abelsromero force-pushed the issue-1150-set-java-11-as-minimal-support branch from 38e22bc to fd8d730 Compare March 22, 2023 13:53
@abelsromero abelsromero marked this pull request as ready for review March 22, 2023 13:54
@abelsromero
Copy link
Member Author

abelsromero commented Mar 22, 2023

Fixed the issue by forcing the toolchain version manually on Windows builds ONLY. It's sad but simple enough that with a simple comment, we can monitor it and remove it if it ever gets fixed. I am also keeping it in a separate commit, since AsciidoctorJ uses "merge pr" that will also make things easier to track.

Since the release pipeline runs already on Java 11, there won't compatibility issues. The release will be 100% J11 binary.

@abelsromero abelsromero force-pushed the issue-1150-set-java-11-as-minimal-support branch from fd8d730 to 4a64e3a Compare March 22, 2023 14:05
@abelsromero abelsromero marked this pull request as draft March 22, 2023 14:19
@abelsromero abelsromero force-pushed the issue-1150-set-java-11-as-minimal-support branch from 4a64e3a to b7b307f Compare March 22, 2023 14:39
@abelsromero abelsromero marked this pull request as ready for review March 22, 2023 15:28
Copy link
Member

@robertpanzer robertpanzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's such a privilege having someone from Tanzu collaborating :)

@robertpanzer robertpanzer merged commit 5fcebcf into asciidoctor:main Mar 23, 2023
@abelsromero abelsromero deleted the issue-1150-set-java-11-as-minimal-support branch April 21, 2023 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set Java11 as minimal version for main branch (v3.0.x)
2 participants