You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/11/09 06:49:12 UTC

[GitHub] [netbeans] errael opened a new issue, #4944: Gradle projects dictate NetBeans' JDK runtime

errael opened a new issue, #4944:
URL: https://github.com/apache/netbeans/issues/4944

   ### Apache NetBeans version
   
   Apache NetBeans 16 release candidate
   
   ### What happened
   
   This is a well known issue. Some recent discussion has shed some light, and mentioned some possibilities. In particular, @sdedic mentions a possible way forward with https://github.com/apache/netbeans/issues/4923#issuecomment-1306981881 and at the end of https://github.com/apache/netbeans/issues/4923#issuecomment-1306104696.
   
   @neilcsmith-net says "I also wonder how Gradle 8 will play into all this." in https://github.com/apache/netbeans/issues/4923#issuecomment-1307502135
   
   The problem as I'm running into it now, for example, there are two projects I work with that pose a versioning problem, one is stuck on Gradle 6.8.3, the other Gradle 5.3.1. That 2nd pins NetBeans to JDK-11. So it's impossible to run NetBeans and take advantage of JDK features/enhancements (like for high DPI displays). On the next NetBeans LTS bump...
   
   ### How to reproduce
   
   _No response_
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Linux harmony 6.0.2-76060002-generic #202210150739~1666289067~22.04~fe0ce53 SMP PREEMPT_DYNAMIC Thu O x86_64 x86_64 x86_64 GNU/Linux
   
   ### JDK
   
   openjdk 11.0.2 2019-01-15 OpenJDK Runtime Environment 18.9 (build 11.0.2+9) OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
   
   ### Apache NetBeans packaging
   
   Own source build
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] sdedic commented on issue #4944: Gradle projects dictate NetBeans' JDK runtime

Posted by GitBox <gi...@apache.org>.
sdedic commented on issue #4944:
URL: https://github.com/apache/netbeans/issues/4944#issuecomment-1309226168

   yes, see note https://github.com/apache/netbeans/issues/4923#issuecomment-1306104696 (at the end). 
   
   BTW the same problem probably applies to Maven (it's run using project's target JDK now). I am sure there are scenarios (e.g. plugin compatibility) when the user needs to run it on a specific Java != NetBeans != target. I don't know whether this is worth a shared / common setting in generic project (java) infra.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] lkishalmi commented on issue #4944: Gradle projects dictate NetBeans' JDK runtime

Posted by GitBox <gi...@apache.org>.
lkishalmi commented on issue #4944:
URL: https://github.com/apache/netbeans/issues/4944#issuecomment-1310918208

   We can run the Gradle Wrapper with whatever JDK we wish (AFAIK: Java 8-17 at the moment, with Gradle 7.4). Just need to pass an appropriate `jvm` to the following `java` task: https://github.com/apache/netbeans/blob/c69515d387e3b595909742e64de1ac426e79c513/extide/gradle/build.xml#L61 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] errael commented on issue #4944: Gradle projects dictate NetBeans' JDK runtime

Posted by GitBox <gi...@apache.org>.
errael commented on issue #4944:
URL: https://github.com/apache/netbeans/issues/4944#issuecomment-1309048745

   > I think the point of view really is why are you stuck with those old Gradle versions, what prevents you to upgrade your build system? That should be a regular task every now and then.
   
   I don't disagree. I took the "upgrade your build system" to extremes moving from `ant` to `gradle 7.5.x` earlier this year for my main project; then had to back up to `6.8.x`. I personally would rather be at the bleeding edge. Sadly, it's not always that simple.
   
   I do not own the Gradle 5.3.1 project; I work with it, occasionally make PR's. It's a quiet project and the owners don't like change. The Gradle 6.8.x requirement is due to https://github.com/gradle/gradle/issues/15942; Gradle 7 removed some `JavaToolChainInternal` API (Gradle changing internal API stuff causing problems, sound familiar?) so I'm stuck until Gradle cleans up their compiler/toolchain API.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] mbien commented on issue #4944: Gradle projects dictate NetBeans' JDK runtime

Posted by GitBox <gi...@apache.org>.
mbien commented on issue #4944:
URL: https://github.com/apache/netbeans/issues/4944#issuecomment-1310590395

   is the error message sufficient to inform the user what the problem is? Or is it some ASM or linkage error?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] lkishalmi closed issue #4944: Gradle projects dictate NetBeans' JDK runtime

Posted by GitBox <gi...@apache.org>.
lkishalmi closed issue #4944: Gradle projects dictate NetBeans' JDK runtime
URL: https://github.com/apache/netbeans/issues/4944


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] lkishalmi commented on issue #4944: Gradle projects dictate NetBeans' JDK runtime

Posted by GitBox <gi...@apache.org>.
lkishalmi commented on issue #4944:
URL: https://github.com/apache/netbeans/issues/4944#issuecomment-1308993990

   Well, this is not a bug, but a limitation of the Gradle Tooling API provided by Gradle.
   
   I think the point of view really is why are you stuck with those old Gradle versions, what prevents you to upgrade your build system? That should be  a regular task every now and then.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] errael commented on issue #4944: Gradle projects dictate NetBeans' JDK runtime

Posted by GitBox <gi...@apache.org>.
errael commented on issue #4944:
URL: https://github.com/apache/netbeans/issues/4944#issuecomment-1320410883

   > Will be fixed as of #4985
   
   Cool. (I guess the "needs:triage" label can be removed from this issue)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] neilcsmith-net commented on issue #4944: Gradle projects dictate NetBeans' JDK runtime

Posted by GitBox <gi...@apache.org>.
neilcsmith-net commented on issue #4944:
URL: https://github.com/apache/netbeans/issues/4944#issuecomment-1310059398

   > BTW the same problem probably applies to Maven (it's run using project's target JDK now). I am sure there are scenarios (e.g. plugin compatibility) when the user needs to run it on a specific Java != NetBeans != target. I don't know whether this is worth a shared / common setting in generic project (java) infra.
   
   I'm sceptical of how this might be done.  Can be achieved in build scripts already?  Would need to be done in such a way that running the build on CLI behaves the same.  Maybe being able to pass registered platforms as paths in environment variables and/or system properties?  Maybe also (in Maven) disabling compile-on-save by default.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] lkishalmi commented on issue #4944: Gradle projects dictate NetBeans' JDK runtime

Posted by GitBox <gi...@apache.org>.
lkishalmi commented on issue #4944:
URL: https://github.com/apache/netbeans/issues/4944#issuecomment-1309215333

   Thanks Ernie, for being content to bugging this much!
   
   It seems I've lived with the misconception, that JavaHome can't be set on build action to retireve the project info for years. I just got angry enough to link that proof here, so it is a limitation in Gradle, when it popped into my eye, that indeed the Java home can be set on `BuildActionExecuter`. That would resolve this issue. 
   
   I have that tested with a raw patch and seems to be working. It wouldn't be a hard change, however a fully working patch is beyond the NB16, but can be expected for early NB17 releases.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] lkishalmi commented on issue #4944: Gradle projects dictate NetBeans' JDK runtime

Posted by GitBox <gi...@apache.org>.
lkishalmi commented on issue #4944:
URL: https://github.com/apache/netbeans/issues/4944#issuecomment-1320400355

   Will be fixed as of #4985 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] errael commented on issue #4944: Gradle projects dictate NetBeans' JDK runtime

Posted by GitBox <gi...@apache.org>.
errael commented on issue #4944:
URL: https://github.com/apache/netbeans/issues/4944#issuecomment-1309058933

   > Well, this is not a bug
   
   I disagree, `Gradle` can't be blamed for design decisions made by the `NetBeans` team. It was probably the right thing to do at the time (NetBeans does tend to do a right thing).
   
   I'm speaking without a good understanding of all the underlying issues, what's possible and with how much effort. It may be that this bug is too much work to fix, and so it won't be fixed; but that doesn't mean it's not a bug.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] errael commented on issue #4944: Gradle projects dictate NetBeans' JDK runtime

Posted by GitBox <gi...@apache.org>.
errael commented on issue #4944:
URL: https://github.com/apache/netbeans/issues/4944#issuecomment-1309258988

   > I have that tested with a raw patch and seems to be working. It wouldn't be a hard change, however a fully working patch is beyond the NB16, but can be expected for early NB17 releases.
   
   That's great news. I never expected NB16; when asked for NetBeans version, NB16-RC was the closest
   
   > for being contempt, bugging this much!
   
   (I'm glad I toned it down)
   I admit that when @sdedic said
   ```
   volunteers to approach Gradle people with a kindly formulated sugggestion?
   ```
   My first thought was that I probably wasn't the best choice.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists