mbien commented on code in PR #9601:
URL: https://github.com/apache/netbeans/pull/9601#discussion_r3939564100


##########
.github/workflows/dependency-checks-mvn.yml:
##########
@@ -0,0 +1,62 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+name: NetBeans Dependency Checks MVN
+
+on:
+#  pull_request:
+  # Allows you to run this workflow manually from the Actions tab in GitHub UI
+  workflow_dispatch:
+
+permissions:
+  contents: read
+
+# cancel other workflow run in the same head-base group if it exists
+concurrency: 
+  group: dep-checker-${{ github.head_ref || github.run_id }}-${{ 
github.base_ref }}
+  cancel-in-progress: true
+
+defaults:
+  run:
+    shell: bash
+
+jobs:
+
+  base-build:
+    name: Check Dependencies
+    runs-on: ubuntu-latest
+    timeout-minutes: 20
+    steps:
+
+      - name: Checkout ${{ github.ref }} ( ${{ github.sha }} )
+        uses: actions/checkout@v7
+        with:
+          persist-credentials: false
+          submodules: false
+          show-progress: false
+
+      - name: Set up JDK
+        uses: actions/setup-java@v6
+        with:
+          java-version: 25
+          distribution: 'zulu'
+
+      - name: Check Dependencies
+        run: |
+          ant -quiet bootstrap
+          ant -quiet verify-libs-and-license
+          cd nbbuild/build/mavenpoms/;mvn 
eu.maveniverse.maven.plugins:toolbox:0.15.17:dependency-versions

Review Comment:
   nit: split line
   ```bash
             cd nbbuild/build/mavenpoms/
             mvn -B eu.maveniverse.maven.plugins:toolbox:0.15.17:libyear
   ```
   
   btw, how about running `libyear` instead of `dependency-versions`?
   
   difference: it will print less (won't show "up to date" lines) and it 
calculates age too, which can be useful for prioritization.
   
   This is the most concice output I could come up with:
   ```bash
   mvn -B\
    -Dorg.slf4j.simpleLogger.defaultLogLevel=warn\
    -Dorg.slf4j.simpleLogger.log.eu.maveniverse.maven=info\
    eu.maveniverse.maven.plugins:0.15.17:toolbox:libyear
   ```
   generates about 1200 lines. 
   
   I am not sure what the github limit is. Would be cool if we could post it 
there like the other action.
   
   ```bash
             echo "<pre>" >> $GITHUB_STEP_SUMMARY
             <command> | tee -a $GITHUB_STEP_SUMMARY
             echo "</pre>" >> $GITHUB_STEP_SUMMARY
   ```
   
   



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to