GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [MRESOLVER-408] Make master 2.0.0-SNAPSHOT by cstamas · Pull Request #335 · apache/maven-resolver

Conversation

@cstamas

@cstamas cstamas commented Oct 10, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Changes:

  • make version 2.0.0-SNAPSHOT
  • build time JDK requirement: raise to 11 (raise as needed, preferably use LTS versions)
  • existing modules are release=8
  • drop animal sniffer
  • redefine enforceBytecodeVersion: we do produce Java 8 stuff, but for testing we may want and will want to use something that is 8+ (ie. Jetty 12)
  • fix sisu (was invoked twice, last parent POM update)
  • compiler: proactively disable annotation processing (we do not use those, but Sisu APT is present, we do not want it auto-picked up, we explicitly index using sisu mojo)
  • compiler: be chatty about deprecations, to help us down the line removing them

https://issues.apache.org/jira/browse/MRESOLVER-408

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cstamas
Make master 2.0.0-SNAPSHOT
aaefaf1
@cstamas cstamas self-assigned this Oct 10, 2023
@cstamas
cstamas requested review from michael-o and slawekjaranowski October 10, 2023 21:42
@cstamas cstamas added this to the 2.0.0 milestone Oct 10, 2023
cstamas added 3 commits October 11, 2023 00:12
@cstamas
Up Java, drop animal sniffer, leave test scoped deps out of bytecodee…
6f974f9
…nforcer
@cstamas
Limit matrix
0c88f1d
@cstamas
Drop undefined
981ad85
michael-o
michael-o requested changes Oct 11, 2023
View reviewed changes
Comment thread pom.xml Outdated
<project.build.outputTimestamp>2023-09-22T18:13:46Z</project.build.outputTimestamp>
<mavenVersion>3.9.5</mavenVersion>
<minimalMavenBuildVersion>[3.8.8,)</minimalMavenBuildVersion>
<minimalJavaBuildVersion>[17.0.6,)</minimalJavaBuildVersion>

@michael-o michael-o Oct 11, 2023

Copy link
Copy Markdown
Member

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.

What is the benefit to require Java 17 to build it? Why is 11 not enough?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@cstamas cstamas Oct 11, 2023

Copy link
Copy Markdown
Member Author

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.

IMHO next to last LTS is good compromise for build time requirement for our anyway dated stack we use. In other words, I want to encourage experiments, and am willing even to go for Java 21 but there are some spotless issues (@slawekjaranowski plz help). Also, I must emphasize: most resolver modules will be still release=8 compiled, but probably not all. As we may have new modules, that do want all the new nice things we can get.

Am pretty much sure, that our users run Maven on latest Java versions (unlike "aligners"), so as resolver being one of the Maven fundamentals libraries, let's make a leap here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@slawekjaranowski slawekjaranowski Oct 11, 2023

Copy link
Copy Markdown
Member

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.

Issue with spotless fix by workaround in parent apache/maven-parent#135

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@michael-o michael-o Oct 11, 2023

Copy link
Copy Markdown
Member

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.

I still don't see a reason to artificially limit this. You still can build with newer ones.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@slawekjaranowski slawekjaranowski Oct 11, 2023

Copy link
Copy Markdown
Member

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.

It is limit only for minimum - you can build by newer versions.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@cstamas cstamas Oct 11, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

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.

There ARE technical (and human) justifications. For example, remember this thread? 😄
https://lists.apache.org/thread/k5sc3w7w4xkgjfzyxxltg06722dvspk7

In short, we tend to say "Java 8" but there are important Java updates, hence there is java 8u172 from 2018 and Java 8u371 from 2023. This thread happened to us, and clearly shows there is sense to set "lower limit". I just dont want to waste my time and resources on things like happened in that thread anymore.

This limit simply says (and means) "recent Java 17" and NOT "just any java 17" as we used to say so far. This is far better, explicit, and even the error message makes sense as shown here:
https://lists.apache.org/thread/tz4qfqhvrvf2fr84l8loqsfpmcf5poz4

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@michael-o michael-o Oct 11, 2023

Copy link
Copy Markdown
Member

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.

You can enforce 8u300+, no?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@cstamas cstamas Oct 11, 2023

Copy link
Copy Markdown
Member Author

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.

I can, but why would I? I want to add modules that do HTTP/2, and require Java11+, moreover, for testing those I may want to use dependencies (test scoped) that are Java17...

What would limiting build time Java requirement to 8u300 help with those above?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@michael-o michael-o Oct 12, 2023

Copy link
Copy Markdown
Member

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.

Do you have Java 17 test deps already?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@gnodet gnodet Oct 12, 2023

Copy link
Copy Markdown
Contributor

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.

Imho, I would keep it as low as needed, but certainly would not put any barrier in raising the build time requirement. This would allow using multi-release JARs if needed or even leverage new JEP such as FFM (for accessing native code or memory). Whatever is needed at build time should be fine.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
slawekjaranowski
slawekjaranowski reviewed Oct 11, 2023
View reviewed changes

@slawekjaranowski slawekjaranowski left a comment

Copy link
Copy Markdown
Member

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.

for me ok - please also fix in Jenkinsfile

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cstamas
cstamas requested a review from gnodet October 11, 2023 18:35
cstamas added 2 commits October 11, 2023 20:52
@cstamas
Fix CI jobs
14fae66
Using Java 17 and 21
@cstamas
Add Java 21 fix for spotless
cf21738
gnodet
gnodet requested changes Oct 11, 2023
View reviewed changes
Comment thread Jenkinsfile Resolved

Uh oh!

There was an error while loading. Please reload this page.

@cstamas
PR comment
1fec038
olamy
olamy approved these changes Oct 12, 2023
View reviewed changes
slawekjaranowski
slawekjaranowski approved these changes Oct 12, 2023
View reviewed changes
@cstamas
POM fixes:
217b8c1
* sisu was invoked twice
* compiler: we do not use annotation processors (while Sisu APT is present, so we do not want it auto-picked up)
* compiler: be explicit about deprecations (to help us removing that cruft)
@cstamas
cstamas requested review from gnodet, michael-o and olamy October 12, 2023 16:51
gnodet
gnodet approved these changes Oct 12, 2023
View reviewed changes

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor

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.

LGTM, though if there's no need to bump the build time JDK requirement, I would keep it low. Whenever the needs come, we can bump it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

michael-o reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
cstamas added 2 commits October 12, 2023 22:22
@cstamas
Lower to latest 11 LTS
16c8d8a
@cstamas
Return JDK 11 to CI
6b9d179
@cstamas cstamas changed the title Make master 2.0.0-SNAPSHOT [MRESOLVER-408] Make master 2.0.0-SNAPSHOT Oct 12, 2023
cstamas added 3 commits October 12, 2023 22:38
@cstamas
Merge remote-tracking branch 'origin/master' into resolver-2.x
9bc11e6
@cstamas
Add page to track migration gotchas
05d3aa2
@cstamas
Rename page source
7cf2a66
@cstamas
cstamas merged commit 67b2552 into apache:master Oct 12, 2023
@cstamas
cstamas deleted the resolver-2.x branch October 12, 2023 20:58
@jira-importer

jira-importer commented Jun 13, 2025

Copy link
Copy Markdown

Resolve #1084

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

3 similar comments
@jira-importer

jira-importer commented Jun 13, 2025

Copy link
Copy Markdown

Resolve #1084

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jira-importer

jira-importer commented Jun 13, 2025

Copy link
Copy Markdown

Resolve #1084

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jira-importer

jira-importer commented Jun 13, 2025

Copy link
Copy Markdown

Resolve #1084

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gnodet gnodet gnodet approved these changes
@slawekjaranowski slawekjaranowski slawekjaranowski approved these changes
@michael-o michael-o Awaiting requested review from michael-o
@olamy olamy Awaiting requested review from olamy

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@cstamas cstamas

Labels

None yet

Projects

None yet

Milestone

2.0.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@cstamas @jira-importer @olamy @gnodet @michael-o @slawekjaranowski
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.