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

[MCOMPILER-529] information that it's possible to use "8" as source/target #245

Closed
wants to merge 2 commits into from

Conversation

Bukama
Copy link
Contributor

@Bukama Bukama commented Jun 23, 2024

Created a draft for an additional note about the alternatives.
If you want have suggestions to improve it, please leave a comment and I will change it.

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Make sure there is a JIRA issue filed
    for the change (usually before you start working on it). Trivial changes like typos do not
    require a JIRA issue. Your pull request should address just this issue, without
    pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [MCOMPILER-XXX] - Fixes bug in ApproximateQuantiles,
    where you replace MCOMPILER-XXX with the appropriate JIRA issue. Best practice
    is to use the JIRA issue title in the pull request title and in the first line of the
    commit message.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean verify to make sure basic checks pass. A more thorough check will
    be performed on your pull request automatically.
  • [] You have run the integration tests successfully (mvn -Prun-its clean verify).
    [ERROR] The following builds failed:
    [ERROR] * mcompiler-120\pom.xml
    [ERROR] * MCOMPILER-346\pom.xml

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

@elharo elharo changed the title MCOMPILER-529 information that it's possible to use "8" as source/target [MCOMPILER-529] information that it's possible to use "8" as source/target Nov 16, 2024
@slachiewicz
Copy link
Member

It's possible to set .release property not only for Java 9+ but also do or Java 8. Plugin will skip passing this parameter to compiler for Java 8

@Bukama
Copy link
Contributor Author

Bukama commented Feb 8, 2025

Sorry, totally missed the notification about your comment :/

It's possible to set .release property not only for Java 9+ but also do or Java 8. Plugin will skip passing this parameter to compiler for Java 8

As this information is already written in the example of the release property, I added a link at the start of the page (similar to M3 and M4 guides about multi module / multi subproject) to use this property if plugin version is 3.13.0 or higher (this version is noticed on the release property page), as it's the preferred option anyway nowadays.

We can also think about (in a separate issues/PR) to merge both examples / "remove" from the menu to point users more directly to using the release property.

@Bukama Bukama requested a review from slachiewicz February 8, 2025 12:55
@slawekjaranowski
Copy link
Member

Please notice, that master - version 4.x require JDK 17

@slawekjaranowski
Copy link
Member

maybe this PR should be targeted to 3.x branch

@@ -82,3 +85,9 @@ Setting the <<<-source>>> and <<<-target>>> of the Java Compiler
In the same way, setting the <<<source>>> option does not guarantee that your code actually compiles on a JDK with
the specified version. To compile your code with a specific JDK version, different than the one used to launch Maven,
refer to the {{{../examples/compile-using-different-jdk.html}Compile Using A Different JDK}} example.

<<Note:>> When you build your project using newer JDK (9+) you can also use "8" instead of "1.8" to set Java 8 as the
Copy link
Member

Choose a reason for hiding this comment

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

JDK 17 is minimum for 4.x

@Bukama
Copy link
Contributor Author

Bukama commented Feb 9, 2025

Please notice, that master - version 4.x require JDK 17

Considering this, I decided to make a larger update of the docs and create a new PR, after I have done this.

@Bukama Bukama closed this Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants