This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jdeps-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 9d1ae19  Format Groovy IT scripts
9d1ae19 is described below

commit 9d1ae19dd101e665ed05e46e47e8d16b78ac77de
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Wed Nov 25 20:36:13 2026 +0000

    Format Groovy IT scripts
    
    Formatting only: the CONVERSION-phase AST of every file is unchanged. See 
https://github.com/apache/maven-invoker-plugin/issues/811.
---
 src/it/dependenciesToAnalyze/verify.groovy | 23 +++++++++++------------
 src/it/includeClasspath/verify.groovy      | 13 ++++++-------
 src/it/package/verify.groovy               | 22 +++++++++++++---------
 src/it/path-fallback/verify.groovy         |  8 ++++----
 src/it/unsupported-api_main/verify.groovy  |  8 +++++---
 src/it/unsupported-api_test/verify.groovy  |  8 +++++---
 6 files changed, 44 insertions(+), 38 deletions(-)

diff --git a/src/it/dependenciesToAnalyze/verify.groovy 
b/src/it/dependenciesToAnalyze/verify.groovy
index 60c05b3..5945cd8 100644
--- a/src/it/dependenciesToAnalyze/verify.groovy
+++ b/src/it/dependenciesToAnalyze/verify.groovy
@@ -17,24 +17,23 @@
  * specific language governing permissions and limitations
  * under the License.
  */
- 
-def buildLog = new File( basedir, 'build.log' )
 
-def found = false;
+def buildLog = new File(basedir, 'build.log')
+
+def found = false
 
 assert buildLog.readLines().each { String line ->
 
-  if ( line.startsWith( '[DEBUG] Executing: ' ) )
-  {
-    assert line.count( "classes" ) == 1 : "invalid classes count: " + 
line.count( "classes" )
+    if (line.startsWith('[DEBUG] Executing: ')) {
+        assert line.count("classes") == 1 : "invalid classes count: " + 
line.count("classes")
 
-    // Match any plexus-utils-<version>.jar rather than pinning an exact 
version,
-    // so future Dependabot bumps of this dependency don't need a matching 
edit here.
-    def plexusUtilsJarCount = ( line =~ /plexus-utils-\d+(\.\d+)*\.jar/ ).count
-    assert plexusUtilsJarCount == 1 : "invalid plexus-utils jar count: " + 
plexusUtilsJarCount
+        // Match any plexus-utils-<version>.jar rather than pinning an exact 
version,
+        // so future Dependabot bumps of this dependency don't need a matching 
edit here.
+        def plexusUtilsJarCount = (line =~ 
/plexus-utils-\d+(\.\d+)*\.jar/).count
+        assert plexusUtilsJarCount == 1 : "invalid plexus-utils jar count: " + 
plexusUtilsJarCount
 
-    found = true;
-  }
+        found = true
+    }
 }
 
 assert found == true : "Executing line not found"
diff --git a/src/it/includeClasspath/verify.groovy 
b/src/it/includeClasspath/verify.groovy
index 086fbdd..0990431 100644
--- a/src/it/includeClasspath/verify.groovy
+++ b/src/it/includeClasspath/verify.groovy
@@ -17,17 +17,16 @@
  * specific language governing permissions and limitations
  * under the License.
  */
- 
-def buildLog = new File( basedir, 'build.log' )
 
-def found = false;
+def buildLog = new File(basedir, 'build.log')
+
+def found = false
 
 buildLog.readLines().each { String line ->
 
-  if ( line.contains( 'Found offending packages' ) )
-  {
-    found = true;
-  }
+    if (line.contains('Found offending packages')) {
+        found = true
+    }
 }
 
 assert found : "No offending packages"
diff --git a/src/it/package/verify.groovy b/src/it/package/verify.groovy
index a228cb8..8fdf1d0 100644
--- a/src/it/package/verify.groovy
+++ b/src/it/package/verify.groovy
@@ -17,16 +17,20 @@
  * specific language governing permissions and limitations
  * under the License.
  */
- 
-def buildLog = new File( basedir, 'build.log' )
 
-def lines = buildLog.readLines().dropWhile{ !it.startsWith("classes -> ") 
}.takeWhile{ !it.startsWith( '[INFO]' ) }
+def buildLog = new File(basedir, 'build.log')
 
-  // classes -> java.base
-  //   org.apache.maven.plugins.jdeps.its                 -> java.io           
                                 java.base
+def lines = buildLog.readLines().dropWhile{
+    !it.startsWith("classes -> ")
+}.takeWhile{
+    !it.startsWith('[INFO]')
+}
 
-  // classes -> c:\Program Files\Java\jdk1.8.0_152\jre\lib\rt.jar
-  //   org.apache.maven.plugins.jdeps.its (classes)
-  //      -> java.io  
+// classes -> java.base
+//   org.apache.maven.plugins.jdeps.its                 -> java.io             
                               java.base
 
-assert lines.size() == ( lines[0] == 'classes -> java.base' ? 2 : 3  )
+// classes -> c:\Program Files\Java\jdk1.8.0_152\jre\lib\rt.jar
+//   org.apache.maven.plugins.jdeps.its (classes)
+//      -> java.io
+
+assert lines.size() == (lines[0] == 'classes -> java.base' ? 2 : 3)
diff --git a/src/it/path-fallback/verify.groovy 
b/src/it/path-fallback/verify.groovy
index 106f5b9..2ccc8bc 100644
--- a/src/it/path-fallback/verify.groovy
+++ b/src/it/path-fallback/verify.groovy
@@ -17,15 +17,15 @@
  * under the License.
  */
 
-def buildLog = new File( basedir, 'build.log' )
+def buildLog = new File(basedir, 'build.log')
 
 // Verify that the build succeeded even if JAVA_HOME was not explicitly set
 // This test validates the PATH fallback functionality
-def found = false;
+def found = false
 
 buildLog.eachLine { String line ->
-    if ( line.contains( 'BUILD SUCCESS' ) ) {
-        found = true;
+    if (line.contains('BUILD SUCCESS')) {
+        found = true
     }
 }
 
diff --git a/src/it/unsupported-api_main/verify.groovy 
b/src/it/unsupported-api_main/verify.groovy
index 7648909..41abbbf 100644
--- a/src/it/unsupported-api_main/verify.groovy
+++ b/src/it/unsupported-api_main/verify.groovy
@@ -17,7 +17,9 @@
  * specific language governing permissions and limitations
  * under the License.
  */
- 
-def buildLog = new File( basedir, 'build.log' )
 
-assert buildLog.readLines().dropWhile{ !(it =~ /Found offending packages\:$/) 
}.getAt(1) ==~ /\[ERROR\]\s+sun\.misc -> JDK (removed )?internal API.*/
+def buildLog = new File(basedir, 'build.log')
+
+assert buildLog.readLines().dropWhile{
+    !(it =~ /Found offending packages\:$/)
+}.getAt(1) ==~ /\[ERROR\]\s+sun\.misc -> JDK (removed )?internal API.*/
diff --git a/src/it/unsupported-api_test/verify.groovy 
b/src/it/unsupported-api_test/verify.groovy
index 88ad755..a5565a9 100644
--- a/src/it/unsupported-api_test/verify.groovy
+++ b/src/it/unsupported-api_test/verify.groovy
@@ -17,7 +17,9 @@
  * specific language governing permissions and limitations
  * under the License.
  */
- 
-def buildLog = new File( basedir, 'build.log' )
 
-assert buildLog.readLines().dropWhile{ !(it =~ /Found offending packages\:$/) 
}.getAt(1) ==~ /\[ERROR\]\s+sun\.misc -> JDK (removed )?internal API.*/
\ No newline at end of file
+def buildLog = new File(basedir, 'build.log')
+
+assert buildLog.readLines().dropWhile{
+    !(it =~ /Found offending packages\:$/)
+}.getAt(1) ==~ /\[ERROR\]\s+sun\.misc -> JDK (removed )?internal API.*/
\ No newline at end of file

Reply via email to