Skip to content

Move Gradle module to Java 17 and NbProjectInfoAction to Java 8 - #7543

Merged
lkishalmi merged 1 commit into
apache:masterfrom
lkishalmi:gradle-on-java17
Jul 13, 2024
Merged

Move Gradle module to Java 17 and NbProjectInfoAction to Java 8#7543
lkishalmi merged 1 commit into
apache:masterfrom
lkishalmi:gradle-on-java17

Conversation

@lkishalmi

Copy link
Copy Markdown
Contributor

This one could be a solution: #7365

@lkishalmi lkishalmi added the Gradle [ci] enable "build tools" tests label Jul 3, 2024
@lkishalmi lkishalmi added this to the NB23 milestone Jul 3, 2024
@lkishalmi
lkishalmi requested review from mbien and sdedic July 3, 2024 22:52

@neilcsmith-net neilcsmith-net left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good! I would have been tempted to make the comment more explicit that certain types are deserialized into the build, but fine with it as it is.

@mbien mbien left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good code-wise but I haven't tested it.

lets hope this was the only situation where the language-level issue can occur.

@errael is good at finding those issues so I have heard, maybe he could check ;)

@errael

errael commented Jul 10, 2024

Copy link
Copy Markdown
Contributor

... at finding those issues so I have heard, maybe he could check ;)

Seems more like they find me. It's not nearly as much fun/motivating if the product isn't about to ship.

I'm happy to give it a try, though I haven't used NB since around the time #7365 was opened.

Hopefully I'll see the commit go by, and then a few days later figure out (remember) how to download a daily. Or someone points me to a zip release with this PR.

@sdedic

sdedic commented Jul 11, 2024

Copy link
Copy Markdown
Member

@errael, @lkishalmi I've tried to open https://github.com/errael/astrology-castro/ to check the behaviour but the project loaded fine (after I removed the part with sonatype credentials).

How should I reach the failure ?

@neilcsmith-net

neilcsmith-net commented Jul 11, 2024

Copy link
Copy Markdown
Member

@sdedic if you're trying to replicate #7365 then it was fixed in 22-rc4, so you'd have to go back before then. If it loads fine with this PR (as hoped) then that's a good sign!

@sdedic

sdedic commented Jul 11, 2024

Copy link
Copy Markdown
Member

maybe I misunderstood @lkishalmi 's first comment then :-/

@neilcsmith-net

Copy link
Copy Markdown
Member

@sdedic this PR makes the same change to Java 17 as included in #7257 while trying to avoid #7365 The original update to Java 17 was reverted. The description could probably do with more info.

The key thing is to ensure that NbProjectInfoAction is separated from the module and built with Java 8 as that class has to be deserializable into the running Gradle build and JDK. Given how that deserialization works, it's probably a good idea to keep separate from the module JAR too.

@mbien mbien added the ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) label Jul 11, 2024
@apache apache locked and limited conversation to collaborators Jul 11, 2024
@apache apache unlocked this conversation Jul 11, 2024
@mbien

mbien commented Jul 11, 2024

Copy link
Copy Markdown
Member

@mbien

mbien commented Jul 11, 2024

Copy link
Copy Markdown
Member

maybe I misunderstood lkishalmi 's first comment then :-/

@sdedic The problem is not in NB 22 since we reverted #7367 a subset of the original PR during stabilization phase which is the normal procedure, esp later in the phase. This is a reworked patch for NB 23 which hopefully does not cause a variant of #7365 again.

@errael

errael commented Jul 11, 2024

Copy link
Copy Markdown
Contributor

I've tried to open ... but the project loaded fine
How should I reach the failure ?

That's it; #7365 are open failures. I just used the provided dev-build. It does not have the project opening problems. I tried setting a breakpoint; running the project. All is well.

It's looking like I'll have some work to do on these projects using NB over the next few weeks. I'll try to put it off until 23-RC1 is ready.

@mbien BTW, in case I want to use that "latest", I looked at the download page and github actions page; it's not obvious how to pick up the latest dev build.

@mbien

mbien commented Jul 11, 2024

Copy link
Copy Markdown
Member

@mbien BTW, in case I want to use that "latest", I looked at the download page and github actions page; it's not obvious how to pick up the latest dev build.

dev-builds (master branch, like "nightly builds") are linked from the readme: https://github.com/apache/netbeans?tab=readme-ov-file#download

the link I posted was a build this PR produced, also a dev build but built from the PR branch (so it includes the changes, the nightly build does not).

@errael

errael commented Jul 11, 2024

Copy link
Copy Markdown
Contributor

dev-builds (master branch, like "nightly builds") are linked from the readme

Doh! Old school; thanks.

@lkishalmi
lkishalmi merged commit 7b1176a into apache:master Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) Gradle [ci] enable "build tools" tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants