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-deploy-plugin.git

commit 3572d1f932bd6e43efdf09d8e76667c174f5686c
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Wed Nov 25 23:07:03 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.
---
 .../verify.groovy                                  | 12 +++++-----
 .../verify.groovy                                  |  8 +++----
 .../verify.groovy                                  | 20 +++++++++-------
 src/it/MDEPLOY-213/verify.groovy                   | 26 ++++++++++----------
 .../verify.groovy                                  | 14 +++++------
 .../verify.groovy                                  | 10 ++++----
 src/it/deploy-at-end-fail/verify.groovy            |  8 +++----
 src/it/deploy-at-end-pass/verify.groovy            | 28 +++++++++++-----------
 src/it/deploy-bom/verify.groovy                    | 10 ++++----
 src/it/no-main-artifact-snapshot/setup.groovy      | 12 +++++-----
 src/it/no-main-artifact-snapshot/verify.groovy     | 19 +++++++--------
 src/it/non-default-pom/verify.groovy               | 26 ++++++++++----------
 src/it/skip-attached-artifacts/verify.groovy       | 21 ++++++++--------
 13 files changed, 105 insertions(+), 109 deletions(-)

diff --git a/src/it/MDEPLOY-170_deploy-at-end-configperproject/verify.groovy 
b/src/it/MDEPLOY-170_deploy-at-end-configperproject/verify.groovy
index c32fe82..0d704d3 100644
--- a/src/it/MDEPLOY-170_deploy-at-end-configperproject/verify.groovy
+++ b/src/it/MDEPLOY-170_deploy-at-end-configperproject/verify.groovy
@@ -17,15 +17,15 @@
  * under the License.
  */
 
-rootRepo = new File( basedir, "target/repo" )
-module1Repo = new File( basedir, "module1/target/repo" )
-module2Repo = new File( basedir, "module1/target/repo" )
+rootRepo = new File(basedir, "target/repo")
+module1Repo = new File(basedir, "module1/target/repo")
+module2Repo = new File(basedir, "module1/target/repo")
 
 if (mavenVersion.startsWith('4.')) {
     // Maven 4 deploys in the root target directory, as defined in the root POM
     module1Repo = module2Repo = rootRepo
 }
 
-assert new File( rootRepo, 
"org/apache/maven/its/mdeploy-170/configperproject/1.0/configperproject-1.0.pom"
 ).exists()
-assert new File( module1Repo, 
"org/apache/maven/its/mdeploy-170/module1/1.0/module1-1.0.pom" ).exists()
-assert !( new File( module2Repo, 
"org/apache/maven/its/mdeploy-170/module2/1.0/module2-1.0.pom" ).exists() )
+assert new File(rootRepo, 
"org/apache/maven/its/mdeploy-170/configperproject/1.0/configperproject-1.0.pom").exists()
+assert new File(module1Repo, 
"org/apache/maven/its/mdeploy-170/module1/1.0/module1-1.0.pom").exists()
+assert !(new File(module2Repo, 
"org/apache/maven/its/mdeploy-170/module2/1.0/module2-1.0.pom").exists())
diff --git 
a/src/it/MDEPLOY-184_deployfile-with-javadoc-and-sources/verify.groovy 
b/src/it/MDEPLOY-184_deployfile-with-javadoc-and-sources/verify.groovy
index 5099eb7..08c06d2 100644
--- a/src/it/MDEPLOY-184_deployfile-with-javadoc-and-sources/verify.groovy
+++ b/src/it/MDEPLOY-184_deployfile-with-javadoc-and-sources/verify.groovy
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-assert new File( basedir, 
"target/repo/org/apache/maven/its/deploy/184/artifact-name/1.0/artifact-name-1.0.jar"
 ).exists()
-assert new File( basedir, 
"target/repo/org/apache/maven/its/deploy/184/artifact-name/1.0/artifact-name-1.0.pom"
 ).exists()
-assert new File( basedir, 
"target/repo/org/apache/maven/its/deploy/184/artifact-name/1.0/artifact-name-1.0-sources.jar"
 ).exists()
-assert new File( basedir, 
"target/repo/org/apache/maven/its/deploy/184/artifact-name/1.0/artifact-name-1.0-javadoc.jar"
 ).exists()
+assert new File(basedir, 
"target/repo/org/apache/maven/its/deploy/184/artifact-name/1.0/artifact-name-1.0.jar").exists()
+assert new File(basedir, 
"target/repo/org/apache/maven/its/deploy/184/artifact-name/1.0/artifact-name-1.0.pom").exists()
+assert new File(basedir, 
"target/repo/org/apache/maven/its/deploy/184/artifact-name/1.0/artifact-name-1.0-sources.jar").exists()
+assert new File(basedir, 
"target/repo/org/apache/maven/its/deploy/184/artifact-name/1.0/artifact-name-1.0-javadoc.jar").exists()
diff --git 
a/src/it/MDEPLOY-202_deployfile-with-multiple-executions/verify.groovy 
b/src/it/MDEPLOY-202_deployfile-with-multiple-executions/verify.groovy
index 31dede3..4a19986 100644
--- a/src/it/MDEPLOY-202_deployfile-with-multiple-executions/verify.groovy
+++ b/src/it/MDEPLOY-202_deployfile-with-multiple-executions/verify.groovy
@@ -18,18 +18,20 @@
  */
 
 def expectedDeploys = [
-        
'org/apache/maven/its/mdeploy-170/configperproject/1.0/configperproject-1.0.pom',
-        
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0-sources.jar',
-        
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0.jar',
-        
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0.pom',
-        
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0-sources.jar',
-        
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0.jar',
-        
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0.pom'
+    
'org/apache/maven/its/mdeploy-170/configperproject/1.0/configperproject-1.0.pom',
+    
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0-sources.jar',
+    
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0.jar',
+    
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0.pom',
+    
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0-sources.jar',
+    
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0.jar',
+    
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0.pom'
 ]
 
-def repoDir = new File ( basedir, 'target/repo')
+def repoDir = new File(basedir, 'target/repo')
 
-def missingDeploys = expectedDeploys.findAll { ! new File(repoDir, 
it).isFile() }
+def missingDeploys = expectedDeploys.findAll {
+    ! new File(repoDir, it).isFile()
+}
 
 assert missingDeploys.size() == 0
 
diff --git a/src/it/MDEPLOY-213/verify.groovy b/src/it/MDEPLOY-213/verify.groovy
index 74a249a..d11ee07 100644
--- a/src/it/MDEPLOY-213/verify.groovy
+++ b/src/it/MDEPLOY-213/verify.groovy
@@ -18,20 +18,18 @@
  */
 
 String[] paths =
-[
-    "org/apache/maven/its/mdeploy-213/test/1.0/test-1.0.pom",
-    "org/apache/maven/its/mdeploy-213/test/1.0/test-1.0.tar.gz",
-    "org/apache/maven/its/mdeploy-213/test/1.0/test-1.0-it.zip",
-    "org/apache/maven/its/mdeploy-213/test/1.0/test-1.0.jar",
-    "org/apache/maven/its/mdeploy-213/test/1.0/test-1.0-javadoc.jar",
-];
+        [
+            "org/apache/maven/its/mdeploy-213/test/1.0/test-1.0.pom",
+            "org/apache/maven/its/mdeploy-213/test/1.0/test-1.0.tar.gz",
+            "org/apache/maven/its/mdeploy-213/test/1.0/test-1.0-it.zip",
+            "org/apache/maven/its/mdeploy-213/test/1.0/test-1.0.jar",
+            "org/apache/maven/its/mdeploy-213/test/1.0/test-1.0-javadoc.jar",
+        ]
 
-for ( String path : paths )
-{
-    File file = new File( new File( basedir, "target/repo" ), path );
-    System.out.println( "Checking for existence of " + file );
-    if ( !file.isFile() )
-    {
-        throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() 
);
+for (String path : paths) {
+    File file = new File(new File(basedir, "target/repo"), path)
+    System.out.println("Checking for existence of " + file)
+    if (!file.isFile()) {
+        throw new FileNotFoundException("Missing: " + file.getAbsolutePath())
     }
 }
diff --git a/src/it/MDEPLOY-224_deploy-at-end-only-modules/verify.groovy 
b/src/it/MDEPLOY-224_deploy-at-end-only-modules/verify.groovy
index 6909378..4ba9df1 100644
--- a/src/it/MDEPLOY-224_deploy-at-end-only-modules/verify.groovy
+++ b/src/it/MDEPLOY-224_deploy-at-end-only-modules/verify.groovy
@@ -17,20 +17,20 @@
  * under the License.
  */
 
-rootRepo = new File( basedir, "target/repo" )
-module1Repo = new File( basedir, "module1/target/repo" )
-module2Repo = new File( basedir, "module2/target/repo" )
+rootRepo = new File(basedir, "target/repo")
+module1Repo = new File(basedir, "module1/target/repo")
+module2Repo = new File(basedir, "module2/target/repo")
 
 if (mavenVersion.startsWith('4.')) {
     // Maven 4 deploys in the root target directory, as defined in the root POM
     module1Repo = module2Repo = rootRepo
 }
 
-assert new File( rootRepo, 
"org/apache/maven/its/mdeploy-224/parent/1.0/parent-1.0.pom" ).exists()
-assert new File( module1Repo, 
"org/apache/maven/its/mdeploy-224/module1/1.0/module1-1.0.pom" ).exists()
-assert new File( module2Repo, 
"org/apache/maven/its/mdeploy-224/module2/1.0/module2-1.0.pom" ).exists()
+assert new File(rootRepo, 
"org/apache/maven/its/mdeploy-224/parent/1.0/parent-1.0.pom").exists()
+assert new File(module1Repo, 
"org/apache/maven/its/mdeploy-224/module1/1.0/module1-1.0.pom").exists()
+assert new File(module2Repo, 
"org/apache/maven/its/mdeploy-224/module2/1.0/module2-1.0.pom").exists()
 
-def buildLog = new File ( basedir, "build.log").text
+def buildLog = new File(basedir, "build.log").text
 
 assert ! buildLog.contains('[INFO] Deferring deploy for 
org.apache.maven.its.mdeploy-224:parent:1.0 at end')
 assert buildLog.contains('[INFO] Deferring deploy for 
org.apache.maven.its.mdeploy-224:module1:1.0 at end')
diff --git a/src/it/MDEPLOY-225_deploy-at-end-skip-root/verify.groovy 
b/src/it/MDEPLOY-225_deploy-at-end-skip-root/verify.groovy
index 03ecebb..b3085d1 100644
--- a/src/it/MDEPLOY-225_deploy-at-end-skip-root/verify.groovy
+++ b/src/it/MDEPLOY-225_deploy-at-end-skip-root/verify.groovy
@@ -17,9 +17,9 @@
  * under the License.
  */
 
-rootRepo = new File( basedir, "target/repo" )
-module1Repo = new File( basedir, "module1/target/repo" )
-module2Repo = new File( basedir, "module2/target/repo" )
+rootRepo = new File(basedir, "target/repo")
+module1Repo = new File(basedir, "module1/target/repo")
+module2Repo = new File(basedir, "module2/target/repo")
 
 if (mavenVersion.startsWith('4.')) {
     // Maven 4 deploys in the root target directory, as defined in the root 
POM (even if not deployed)
@@ -30,5 +30,5 @@ if (mavenVersion.startsWith('4.')) {
 }
 
 // check that files are deployed both by Maven 3 and 4 = 
https://github.com/apache/maven-deploy-plugin/issues/533
-assert new File( module1Repo, 
"org/apache/maven/its/mdeploy-225/module1/1.0/module1-1.0.pom" ).exists()
-assert new File( module2Repo, 
"org/apache/maven/its/mdeploy-225/module2/1.0/module2-1.0.pom" ).exists()
+assert new File(module1Repo, 
"org/apache/maven/its/mdeploy-225/module1/1.0/module1-1.0.pom").exists()
+assert new File(module2Repo, 
"org/apache/maven/its/mdeploy-225/module2/1.0/module2-1.0.pom").exists()
diff --git a/src/it/deploy-at-end-fail/verify.groovy 
b/src/it/deploy-at-end-fail/verify.groovy
index 27d678a..000619d 100644
--- a/src/it/deploy-at-end-fail/verify.groovy
+++ b/src/it/deploy-at-end-fail/verify.groovy
@@ -17,10 +17,10 @@
  * under the License.
  */
 
-assert !( new File( basedir, 
"target/repo/org/apache/maven/its/deploy/dae/fail/dae/1.0/dae-1.0.pom" 
).exists() )
-assert !( new File( basedir, 
"module1/target/repo/org/apache/maven/its/deploy/dae/fail/module1/1.0/module1-1.0.pom"
 ).exists() )
+assert !(new File(basedir, 
"target/repo/org/apache/maven/its/deploy/dae/fail/dae/1.0/dae-1.0.pom").exists())
+assert !(new File(basedir, 
"module1/target/repo/org/apache/maven/its/deploy/dae/fail/module1/1.0/module1-1.0.pom").exists())
 
-File buildLog = new File( basedir, 'build.log' )
+File buildLog = new File(basedir, 'build.log')
 assert buildLog.exists()
-assert buildLog.text.contains( "[INFO] Deferring deploy for 
org.apache.maven.its.deploy.dae.fail:dae:1.0 at end" )
+assert buildLog.text.contains("[INFO] Deferring deploy for 
org.apache.maven.its.deploy.dae.fail:dae:1.0 at end")
 
diff --git a/src/it/deploy-at-end-pass/verify.groovy 
b/src/it/deploy-at-end-pass/verify.groovy
index d85f8ec..1305c30 100644
--- a/src/it/deploy-at-end-pass/verify.groovy
+++ b/src/it/deploy-at-end-pass/verify.groovy
@@ -17,24 +17,24 @@
  * under the License.
  */
 
-assert new File( remoteRepo, 
"deploy-at-end-pass/org/apache/maven/its/deploy/dae/pass/dae/1.0/dae-1.0.pom" 
).exists()
-assert new File( remoteRepo, 
"deploy-at-end-pass/org/apache/maven/its/deploy/dae/pass/module1/1.0/module1-1.0.pom"
 ).exists()
-assert new File( remoteRepo, 
"deploy-at-end-pass/org/apache/maven/its/deploy/dae/pass/module1/1.0/module1-1.0.jar"
 ).exists()
-assert new File( remoteRepo, 
"deploy-at-end-pass/org/apache/maven/its/deploy/dae/pass/module3/1.0/module3-1.0.pom"
 ).exists()
-assert new File( remoteRepo, 
"deploy-at-end-pass/org/apache/maven/its/deploy/dae/pass/module3/1.0/module3-1.0.jar"
 ).exists()
+assert new File(remoteRepo, 
"deploy-at-end-pass/org/apache/maven/its/deploy/dae/pass/dae/1.0/dae-1.0.pom").exists()
+assert new File(remoteRepo, 
"deploy-at-end-pass/org/apache/maven/its/deploy/dae/pass/module1/1.0/module1-1.0.pom").exists()
+assert new File(remoteRepo, 
"deploy-at-end-pass/org/apache/maven/its/deploy/dae/pass/module1/1.0/module1-1.0.jar").exists()
+assert new File(remoteRepo, 
"deploy-at-end-pass/org/apache/maven/its/deploy/dae/pass/module3/1.0/module3-1.0.pom").exists()
+assert new File(remoteRepo, 
"deploy-at-end-pass/org/apache/maven/its/deploy/dae/pass/module3/1.0/module3-1.0.jar").exists()
 
 // both invocations append to this one build.log, so the messages below prove 
deferral for either run, not the serial one alone
-File buildLog = new File( basedir, 'build.log' )
+File buildLog = new File(basedir, 'build.log')
 assert buildLog.exists()
-assert buildLog.text.contains( "[INFO] Deferring deploy for 
org.apache.maven.its.deploy.dae.pass:dae:1.0 at end" )
-assert buildLog.text.contains( "[INFO] Deferring deploy for 
org.apache.maven.its.deploy.dae.pass:module1:1.0 at end" )
+assert buildLog.text.contains("[INFO] Deferring deploy for 
org.apache.maven.its.deploy.dae.pass:dae:1.0 at end")
+assert buildLog.text.contains("[INFO] Deferring deploy for 
org.apache.maven.its.deploy.dae.pass:module1:1.0 at end")
 // Last module does not emit this misleading message, as it IS "the end", not 
deferring anymore
 //assert buildLog.text.contains( "[INFO] Deferring deploy for 
org.apache.maven.its.deploy.dae.pass:module3:1.0 at end" )
 
 // second run (-T2, MDEPLOY-169): every project that deploys at the end 
reached the alternative repository
-parallelRepo = new File( basedir, 
"target/parallel-repo/org/apache/maven/its/deploy/dae/pass" )
-assert new File( parallelRepo, "dae/1.0/dae-1.0.pom" ).exists()
-assert new File( parallelRepo, "module1/1.0/module1-1.0.pom" ).exists()
-assert new File( parallelRepo, "module1/1.0/module1-1.0.jar" ).exists()
-assert new File( parallelRepo, "module3/1.0/module3-1.0.pom" ).exists()
-assert new File( parallelRepo, "module3/1.0/module3-1.0.jar" ).exists()
+parallelRepo = new File(basedir, 
"target/parallel-repo/org/apache/maven/its/deploy/dae/pass")
+assert new File(parallelRepo, "dae/1.0/dae-1.0.pom").exists()
+assert new File(parallelRepo, "module1/1.0/module1-1.0.pom").exists()
+assert new File(parallelRepo, "module1/1.0/module1-1.0.jar").exists()
+assert new File(parallelRepo, "module3/1.0/module3-1.0.pom").exists()
+assert new File(parallelRepo, "module3/1.0/module3-1.0.jar").exists()
diff --git a/src/it/deploy-bom/verify.groovy b/src/it/deploy-bom/verify.groovy
index 8979588..1d6ebbf 100644
--- a/src/it/deploy-bom/verify.groovy
+++ b/src/it/deploy-bom/verify.groovy
@@ -18,13 +18,15 @@
  */
 
 def expectedDeploys = [
-        'org/apache/maven/its/deploy/bom/test/1.0/test-1.0.pom',
-        'org/apache/maven/its/deploy/bom/test/maven-metadata.xml',
+    'org/apache/maven/its/deploy/bom/test/1.0/test-1.0.pom',
+    'org/apache/maven/its/deploy/bom/test/maven-metadata.xml',
 ]
 
-def repoDir = new File ( basedir, 'target/repo')
+def repoDir = new File(basedir, 'target/repo')
 
-def missingDeploys = expectedDeploys.findAll { ! new File(repoDir, 
it).isFile() }
+def missingDeploys = expectedDeploys.findAll {
+    ! new File(repoDir, it).isFile()
+}
 
 assert missingDeploys.size() == 0
 
diff --git a/src/it/no-main-artifact-snapshot/setup.groovy 
b/src/it/no-main-artifact-snapshot/setup.groovy
index 10e7940..d0c12e5 100644
--- a/src/it/no-main-artifact-snapshot/setup.groovy
+++ b/src/it/no-main-artifact-snapshot/setup.groovy
@@ -17,10 +17,10 @@
  * under the License.
  */
 
-File file = new File( localRepositoryPath, "org/apache/maven/its/deploy/nmas" 
);
-System.out.println( "Deleting " + file );
-assert file.deleteDir();
+File file = new File(localRepositoryPath, "org/apache/maven/its/deploy/nmas")
+System.out.println("Deleting " + file)
+assert file.deleteDir()
 
-file = new File( basedir, "target/repo" );
-System.out.println( "Deleting " + file );
-assert file.deleteDir();
+file = new File(basedir, "target/repo")
+System.out.println("Deleting " + file)
+assert file.deleteDir()
diff --git a/src/it/no-main-artifact-snapshot/verify.groovy 
b/src/it/no-main-artifact-snapshot/verify.groovy
index f687bf1..c4bd28e 100644
--- a/src/it/no-main-artifact-snapshot/verify.groovy
+++ b/src/it/no-main-artifact-snapshot/verify.groovy
@@ -17,23 +17,20 @@
  * under the License.
  */
 
-File dir = new File( new File( basedir, "target/repo" ), 
"org/apache/maven/its/deploy/nmas/test/1.0-SNAPSHOT" );
+File dir = new File(new File(basedir, "target/repo"), 
"org/apache/maven/its/deploy/nmas/test/1.0-SNAPSHOT")
 
-String[] files = dir.list();
+String[] files = dir.list()
 
 assert files != null : "Missing directory: " + dir
 
-String pom = null, jar = null;
+String pom = null, jar = null
 
-for ( String file : files )
-{
-    if ( file.matches( "test-1\\.0-[0-9]{8}\\.[0-9]{6}-([0-9]+)\\.pom" ) )
-    {
-        pom = file.substring( 0, file.length() - 4 );
+for ( String file : files ) {
+    if ( file.matches( "test-1\\.0-[0-9]{8}\\.[0-9]{6}-([0-9]+)\\.pom" ) ) {
+        pom = file.substring( 0, file.length() - 4 )
     }
-    if ( file.matches( "test-1\\.0-[0-9]{8}\\.[0-9]{6}-([0-9]+)-it\\.jar" ) )
-    {
-        jar = file.substring( 0, file.length() - 7 );
+    if ( file.matches( "test-1\\.0-[0-9]{8}\\.[0-9]{6}-([0-9]+)-it\\.jar" ) ) {
+        jar = file.substring( 0, file.length() - 7 )
     }
 }
 
diff --git a/src/it/non-default-pom/verify.groovy 
b/src/it/non-default-pom/verify.groovy
index fb55ef5..24c26ee 100644
--- a/src/it/non-default-pom/verify.groovy
+++ b/src/it/non-default-pom/verify.groovy
@@ -17,23 +17,21 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
 String[] paths =
-[
-    "org/apache/maven/its/deploy/ndp/test/maven-metadata.xml",
-    "org/apache/maven/its/deploy/ndp/test/1.0/test-1.0.pom",
-];
+        [
+            "org/apache/maven/its/deploy/ndp/test/maven-metadata.xml",
+            "org/apache/maven/its/deploy/ndp/test/1.0/test-1.0.pom",
+        ]
 
-for ( String path : paths )
-{
-    File file = new File( new File( basedir, "target/repo" ), path );
-    System.out.println( "Checking for existence of " + file );
-    if ( !file.isFile() )
-    {
-        throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() 
);
+for (String path : paths) {
+    File file = new File(new File(basedir, "target/repo"), path)
+    System.out.println("Checking for existence of " + file)
+    if (!file.isFile()) {
+        throw new FileNotFoundException("Missing: " + file.getAbsolutePath())
     }
 }
 
-return true;
+return true
diff --git a/src/it/skip-attached-artifacts/verify.groovy 
b/src/it/skip-attached-artifacts/verify.groovy
index 324d511..6444da5 100644
--- a/src/it/skip-attached-artifacts/verify.groovy
+++ b/src/it/skip-attached-artifacts/verify.groovy
@@ -19,23 +19,22 @@
 
 // the repository URL is relative to the basedir of each module on Maven 3 and 
to the root on Maven 4
 def deployed = []
-basedir.eachFileRecurse( groovy.io.FileType.FILES ) { file ->
-    if ( file.path.replace( '\\', '/' ).contains( '/target/repo/' ) )
-    {
+basedir.eachFileRecurse(groovy.io.FileType.FILES) { file ->
+    if (file.path.replace('\\', '/').contains('/target/repo/')) {
         deployed << file.name
     }
 }
 
-assert deployed.contains( 'module1-1.0.pom' )
-assert deployed.contains( 'module1-1.0.jar' )
-assert deployed.contains( 'module2-1.0.pom' )
-assert deployed.contains( 'module2-1.0.jar' )
+assert deployed.contains('module1-1.0.pom')
+assert deployed.contains('module1-1.0.jar')
+assert deployed.contains('module2-1.0.pom')
+assert deployed.contains('module2-1.0.jar')
 
 // module1 holds its sources JAR back; the JAR was built and is still attached
-assert new File( basedir, 'module1/target/module1-1.0-sources.jar' ).isFile()
-assert !deployed.contains( 'module1-1.0-sources.jar' )
+assert new File(basedir, 'module1/target/module1-1.0-sources.jar').isFile()
+assert !deployed.contains('module1-1.0-sources.jar')
 
 // module2, the last module of the build, has no skipAttachedArtifacts and 
deploys its sources JAR
-assert deployed.contains( 'module2-1.0-sources.jar' )
+assert deployed.contains('module2-1.0-sources.jar')
 
-assert new File( basedir, 'build.log' ).text.contains( 'Skipping deployment of 
attached artifact' )
+assert new File(basedir, 'build.log').text.contains('Skipping deployment of 
attached artifact')

Reply via email to