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

[MARCHETYPES-76] maven-archetype-quickstart generates EOLed maven.compiler setup #18

Merged
merged 3 commits into from
Dec 21, 2023

Conversation

judovana
Copy link
Contributor

@judovana judovana commented Nov 16, 2023

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. https://issues.apache.org/jira/browse/MARCHETYPES-76
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [MARCHETYPES-XXX] SUMMARY, where you replace MARCHETYPES-XXX
    and SUMMARY 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.

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.

compilerProperties had one parameter - javaCompilerVersion. This commit
is renaming this parameter and its usage to jcv, so it is no longer
exchangable for the property
@judovana
Copy link
Contributor Author

judovana commented Nov 16, 2023

Note, that the PR is in real just:

-#compilerProperties( "1.7" )
+#compilerProperties( "1.8" )

the rest is adjusting of tests to the new reality. Renaming s/8/7/g in names and s/1.8/1.7/g in theirs pom.xml and reference

@gnodet
Copy link

gnodet commented Dec 19, 2023

Note, that the PR is in real just:

-#compilerProperties( "1.7" )
+#compilerProperties( "1.8" )

the rest is adjusting of tests to the new reality. Renaming s/8/7/g in names and s/1.8/1.7/g in theirs pom.xml and reference

And why do we need to move all the tests back to 1.7 ?

@slachiewicz
Copy link
Member

Java 7 target is no longer supported on Java 21

@judovana
Copy link
Contributor Author

The test demosntrates that you can still use legacy 1.7 if you insists.

Java 7 target is no longer supported on Java 21

Right. thats why this PR was created :)

@judovana
Copy link
Contributor Author

judovana commented Dec 19, 2023

And why do we need to move all the tests back to 1.7 ?

Well the default is now 1.8, it soudned liek nonsense to keep "bump" to 1.8.

There is already test which demonstrate that you can bump it up from default (to 11), to modular jdk,
The renamed test was demonstrating bump up, to non modular jdk. Unluckily there is no more non-mudular jdks when jumping up, so I kept the test to demonstrates that you can still use legacy 1.7, non modular if you insists.

Considering the next minimal JDK with next LTS will be some JDK12 or so, the test down, to non modular jdk will be still valid.

If you have any issues, I will revert the test change, or adjsut.

Copy link

@gnodet gnodet left a comment

Choose a reason for hiding this comment

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

Unless there's a reason, I'd revert the variable naming change.

@slachiewicz slachiewicz merged commit bf9f295 into apache:master Dec 21, 2023
@judovana
Copy link
Contributor Author

Thank you very much. I did not realised that the commit will be squashed. I will keep it in mind for next time.

@judovana
Copy link
Contributor Author

judovana commented Dec 22, 2023

The remaining 1.7 fixed in #20 if you would be so kinf to eyball again, and possibly do a new release of maven archetypes, so the 1.8 will is egenrated via released version in maven repos, would be awesome - https://issues.apache.org/jira/browse/MARCHETYPES-79

asfgit pushed a commit that referenced this pull request Dec 22, 2023
…es EOLed maven.compiler setup (#18)"

This reverts commit bf9f295.
asfgit pushed a commit that referenced this pull request Dec 22, 2023
…uickstart generates EOLed maven.compiler setup (#18)"

This reverts commit bf9f295.
asfgit pushed a commit that referenced this pull request Dec 22, 2023
…aven.compiler setup (#18)"

Fails with Java 21

This reverts commit bf9f295.
@slachiewicz slachiewicz self-requested a review December 22, 2023 23:24
@slachiewicz
Copy link
Member

I've reverted it 0da7166 becouse I approved it too fast and we shouldn't move tests from Java 8 back to Java 7.

@judovana
Copy link
Contributor Author

judovana commented Dec 25, 2023

Do you realize that test will then (after bump of default jdk from 1.7 to 1.8) do noting. What do you suggest todo with that test then?

Afaikl the test to bump/dump to non-modular jdk should be there (there is a if in the macros on modular jdk)

@slachiewicz
Copy link
Member

Thank you. I would leave it to someone more knowledgeable with this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants