You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "jlahoda (via GitHub)" <gi...@apache.org> on 2025/08/23 05:50:01 UTC

[PR] Upgrading to NetBeans 27, and JDK 17 as the baseline. [netbeans-jackpot30]

jlahoda opened a new pull request, #39:
URL: https://github.com/apache/netbeans-jackpot30/pull/39

   (no comment)


-- 
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


Re: [PR] Upgrading to NetBeans 27, and JDK 17 as the baseline. [netbeans-jackpot30]

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on PR #39:
URL: https://github.com/apache/netbeans-jackpot30/pull/39#issuecomment-3216976916

   > * upgrading lowest supported JDK isn't much a technical issue
   > * rather it is a "political" decision
   >   
   >   * I prefer approach of Maven that sticks with lowest possible JDK for years
   >   * and let's users run Maven on (almost) any JDK of choice
   
   Can we please stop rehashing this incorrect argument.  The reason was technical (and resources), not political.  And you should really look at the current discussions on min JDK policies for Maven 4!  It will be _at least_ 17, possibly 21.
   
   
   


-- 
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


Re: [PR] Upgrading to NetBeans 28, and JDK 17 as the baseline. [netbeans-jackpot30]

Posted by "BradWalker (via GitHub)" <gi...@apache.org>.
BradWalker commented on PR #39:
URL: https://github.com/apache/netbeans-jackpot30/pull/39#issuecomment-3566969654

   Thanks for this!


-- 
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


Re: [PR] Upgrading to NetBeans 27, and JDK 17 as the baseline. [netbeans-jackpot30]

Posted by "jlahoda (via GitHub)" <gi...@apache.org>.
jlahoda commented on code in PR #39:
URL: https://github.com/apache/netbeans-jackpot30/pull/39#discussion_r2296762119


##########
.github/workflows/main.yml:
##########
@@ -38,19 +38,34 @@ jobs:
     steps:
 
       - name: Checkout ${{ github.ref }} ( ${{ github.sha }} )
-        uses: actions/checkout@v3
+        uses: actions/checkout@v5
         with:
           persist-credentials: false
           submodules: false
 
       - name: Set up Ubuntu dependencies
         run: |
-            sudo apt install openjdk-11-jdk openjdk-17-jdk openjdk-21-jdk
+            sudo apt update
+            sudo apt install openjdk-17-jdk openjdk-21-jdk
+
+      - name: Download latest JDK 24
+        run: |
+            PROC=`uname -p`
+            if [ "$PROC" = "x86_64" ] ; then PROC="x64"; fi;
+            URL=`wget https://raw.githubusercontent.com/oracle-actions/setup-java/refs/heads/main/jdk.java.net-uri.properties -O - | grep "24,latest,linux,$PROC" | cut -d '=' -f 2-`
+            wget $URL -O $RUNNER_TEMP/jdk-24.tar.gz
+
+      - name: Set up JDK 24 from the downloaded archive
+        uses: actions/setup-java@v5
+        with:
+            distribution: 'jdkfile'
+            jdkFile: ${{ runner.temp }}/jdk-24.tar.gz
+            java-version: '24'

Review Comment:
   Yes, that's the reason. I tried pinning the action + added dependabot.



-- 
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


Re: [PR] Upgrading to NetBeans 27, and JDK 17 as the baseline. [netbeans-jackpot30]

Posted by "jlahoda (via GitHub)" <gi...@apache.org>.
jlahoda commented on PR #39:
URL: https://github.com/apache/netbeans-jackpot30/pull/39#issuecomment-3217045218

   Regardless of view on what the decision was for NetBeans (IDE), the "decision" (or, rather, lack of thereof) *here* is purely technical. Important classes of NetBeans (IDE) 27 have classfile version 61 - like `org.netbeans.api.java.source.CompilationInfo`. This tool cannot run without this class, so for this tool, it is basically "no release" or "release that supports JDK 17+".
   


-- 
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


Re: [PR] Upgrading to NetBeans 27, and JDK 17 as the baseline. [netbeans-jackpot30]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on code in PR #39:
URL: https://github.com/apache/netbeans-jackpot30/pull/39#discussion_r2296710436


##########
.github/workflows/main.yml:
##########
@@ -38,19 +38,34 @@ jobs:
     steps:
 
       - name: Checkout ${{ github.ref }} ( ${{ github.sha }} )
-        uses: actions/checkout@v3
+        uses: actions/checkout@v5
         with:
           persist-credentials: false
           submodules: false
 
       - name: Set up Ubuntu dependencies
         run: |
-            sudo apt install openjdk-11-jdk openjdk-17-jdk openjdk-21-jdk
+            sudo apt update
+            sudo apt install openjdk-17-jdk openjdk-21-jdk
+
+      - name: Download latest JDK 24
+        run: |
+            PROC=`uname -p`
+            if [ "$PROC" = "x86_64" ] ; then PROC="x64"; fi;
+            URL=`wget https://raw.githubusercontent.com/oracle-actions/setup-java/refs/heads/main/jdk.java.net-uri.properties -O - | grep "24,latest,linux,$PROC" | cut -d '=' -f 2-`
+            wget $URL -O $RUNNER_TEMP/jdk-24.tar.gz
+
+      - name: Set up JDK 24 from the downloaded archive
+        uses: actions/setup-java@v5
+        with:
+            distribution: 'jdkfile'
+            jdkFile: ${{ runner.temp }}/jdk-24.tar.gz
+            java-version: '24'

Review Comment:
   i suppose the reason for the parsing is because the normal `setup-java` action doesn't offer jdk.java.net downloads?
   
   In that case:
   we _can_ use third party actions, we just have to pin their versions and activate dependabot.
   
   ```yaml
         - name: Set up latest JDK 24 from jdk.java.net
           uses: oracle-actions/setup-java@b1546e588c27008e88bfcabda44d11c22316b9b8 # v1.4.2
           with:
               website: jdk.java.net
               release: 24
   ```
   
   dependabot file for actions updates:
   
   https://github.com/apache/netbeans/blob/master/.github/dependabot.yml
   
   would hat be easier?



-- 
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


Re: [PR] Upgrading to NetBeans 27, and JDK 17 as the baseline. [netbeans-jackpot30]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on code in PR #39:
URL: https://github.com/apache/netbeans-jackpot30/pull/39#discussion_r2296711380


##########
.github/workflows/main.yml:
##########
@@ -38,19 +38,34 @@ jobs:
     steps:
 
       - name: Checkout ${{ github.ref }} ( ${{ github.sha }} )
-        uses: actions/checkout@v3
+        uses: actions/checkout@v5
         with:
           persist-credentials: false
           submodules: false
 
       - name: Set up Ubuntu dependencies
         run: |
-            sudo apt install openjdk-11-jdk openjdk-17-jdk openjdk-21-jdk
+            sudo apt update
+            sudo apt install openjdk-17-jdk openjdk-21-jdk
+
+      - name: Download latest JDK 24
+        run: |
+            PROC=`uname -p`
+            if [ "$PROC" = "x86_64" ] ; then PROC="x64"; fi;
+            URL=`wget https://raw.githubusercontent.com/oracle-actions/setup-java/refs/heads/main/jdk.java.net-uri.properties -O - | grep "24,latest,linux,$PROC" | cut -d '=' -f 2-`
+            wget $URL -O $RUNNER_TEMP/jdk-24.tar.gz
+
+      - name: Set up JDK 24 from the downloaded archive
+        uses: actions/setup-java@v5
+        with:
+            distribution: 'jdkfile'
+            jdkFile: ${{ runner.temp }}/jdk-24.tar.gz
+            java-version: '24'

Review Comment:
   here the policy for the curious: https://infra.apache.org/github-actions-policy.html



-- 
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


Re: [PR] Upgrading to NetBeans 27, and JDK 17 as the baseline. [netbeans-jackpot30]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on code in PR #39:
URL: https://github.com/apache/netbeans-jackpot30/pull/39#discussion_r2296711380


##########
.github/workflows/main.yml:
##########
@@ -38,19 +38,34 @@ jobs:
     steps:
 
       - name: Checkout ${{ github.ref }} ( ${{ github.sha }} )
-        uses: actions/checkout@v3
+        uses: actions/checkout@v5
         with:
           persist-credentials: false
           submodules: false
 
       - name: Set up Ubuntu dependencies
         run: |
-            sudo apt install openjdk-11-jdk openjdk-17-jdk openjdk-21-jdk
+            sudo apt update
+            sudo apt install openjdk-17-jdk openjdk-21-jdk
+
+      - name: Download latest JDK 24
+        run: |
+            PROC=`uname -p`
+            if [ "$PROC" = "x86_64" ] ; then PROC="x64"; fi;
+            URL=`wget https://raw.githubusercontent.com/oracle-actions/setup-java/refs/heads/main/jdk.java.net-uri.properties -O - | grep "24,latest,linux,$PROC" | cut -d '=' -f 2-`
+            wget $URL -O $RUNNER_TEMP/jdk-24.tar.gz
+
+      - name: Set up JDK 24 from the downloaded archive
+        uses: actions/setup-java@v5
+        with:
+            distribution: 'jdkfile'
+            jdkFile: ${{ runner.temp }}/jdk-24.tar.gz
+            java-version: '24'

Review Comment:
   here the policy for the curious: https://infra.apache.org/github-actions-policy.html
   
   `oracle-actions/setup-java` is on the managed allow list too:
   https://github.com/apache/infrastructure-actions/blob/740802cd07a28448f5b3d3f76af5bc14796a3979/actions.yml#L633



-- 
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


Re: [PR] Upgrading to NetBeans 28, and JDK 17 as the baseline. [netbeans-jackpot30]

Posted by "jlahoda (via GitHub)" <gi...@apache.org>.
jlahoda merged PR #39:
URL: https://github.com/apache/netbeans-jackpot30/pull/39


-- 
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


Re: [PR] Upgrading to NetBeans 27, and JDK 17 as the baseline. [netbeans-jackpot30]

Posted by "jtulach (via GitHub)" <gi...@apache.org>.
jtulach commented on PR #39:
URL: https://github.com/apache/netbeans-jackpot30/pull/39#issuecomment-3217739585

   - I guess I cannot really positively contribute to review of this PR, so I am unsubscribing with following last note...
   
   > look at the current discussions on min JDK policies for Maven 4! It will be _at least_ 17, possibly 21. Maven could even be the thing that forces us to move faster!
   
   - Ááá, somebody is trying to reproduce the "success of Angular 2.0"!
   - people tend to underestimate the importance of [portability](https://wiki.apidesign.org/wiki/Portability) and [compatibility](https://wiki.apidesign.org/wiki/BackwardCompatibility)
   
   > The reason was technical (and resources), not political.
   
   - that's not something I could ever agree with...
   - ... as someone who's technical solution was rejected...
   - ...based on "political reasons and beliefs"
   
   Howg.


-- 
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


Re: [PR] Upgrading to NetBeans 27, and JDK 17 as the baseline. [netbeans-jackpot30]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on code in PR #39:
URL: https://github.com/apache/netbeans-jackpot30/pull/39#discussion_r2296264067


##########
.github/workflows/main.yml:
##########
@@ -45,12 +45,19 @@ jobs:
 
       - name: Set up Ubuntu dependencies
         run: |
-            sudo apt install openjdk-11-jdk openjdk-17-jdk openjdk-21-jdk
+            sudo apt update
+            sudo apt install openjdk-17-jdk openjdk-21-jdk
+
+      - name: Set up latest JDK 24 from jdk.java.net
+        uses: oracle-actions/setup-java@v1
+        with:
+            website: jdk.java.net
+            release: 24

Review Comment:
   ```yaml
   - name: Set up latest JDK 24
     uses: actions/setup-java@v5
     with:
       distribution: 'oracle'
       java-version: '24'
   ```
   
   its better to avoid third party actions, since those would have to be version-pinned and managed via dependabot like we do in the `/netbeans` repo.



-- 
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