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

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


The following commit(s) were added to refs/heads/maven-deploy-plugin-4.x by 
this push:
     new 5f71ce2  Format Groovy IT scripts
5f71ce2 is described below

commit 5f71ce2113fda4a427a6d38dc9944083ed5ad332
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Wed Nov 25 20:51:55 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/3rd-party-jar-with-extras/verify.groovy     | 48 ++++++--------
 src/it/3rd-party-jar-without-pom/verify.groovy     | 42 ++++++------
 src/it/3rd-party-pom-with-extras/verify.groovy     | 48 ++++++--------
 .../verify.groovy                                  | 12 ++--
 .../verify.groovy                                  | 12 ++--
 .../verify.groovy                                  | 12 ++--
 .../verify.groovy                                  |  8 +--
 .../verify.groovy                                  | 20 +++---
 src/it/MDEPLOY-212/verify.groovy                   | 48 +++++++-------
 src/it/MDEPLOY-213/verify.groovy                   | 32 +++++-----
 .../verify.groovy                                  | 14 ++--
 .../verify.groovy                                  | 10 +--
 .../verify.groovy                                  | 42 ++++++------
 .../alt-deploy-repo-with-dist-mgmt/verify.groovy   | 28 ++++----
 .../verify.groovy                                  | 28 ++++----
 src/it/attach-release-jar/verify.groovy            | 30 ++++-----
 src/it/deploy-at-end-fail/verify.groovy            |  8 +--
 src/it/deploy-at-end-pass/verify.groovy            | 16 ++---
 src/it/deploy-attached-sources/verify.groovy       | 74 ++++++++++------------
 src/it/deploy-bom/verify.groovy                    | 12 ++--
 src/it/deploy-default-packaging/verify.groovy      | 41 ++++++------
 src/it/deployfile-snapshot-skip-fail/verify.groovy |  8 ++-
 src/it/external-release-jar/verify.groovy          | 28 ++++----
 src/it/gav-validation/verify.groovy                | 17 ++---
 src/it/mdeploy-45-test/verify.groovy               | 41 ++++++------
 src/it/no-main-artifact-1/verify.groovy            |  6 +-
 src/it/no-main-artifact-2/verify.groovy            |  6 +-
 src/it/no-main-artifact-snapshot/setup.groovy      | 20 +++---
 src/it/no-main-artifact-snapshot/verify.groovy     | 45 ++++++-------
 src/it/non-default-pom/verify.groovy               | 26 ++++----
 src/it/release-jar/verify.groovy                   | 28 ++++----
 src/it/release-pom/verify.groovy                   | 26 ++++----
 src/it/skip-attached-artifacts/verify.groovy       | 21 +++---
 src/it/skip-release-jar/verify.groovy              | 28 ++++----
 src/it/skip-snapshot-jar/verify.groovy             | 35 +++++-----
 src/it/snapshot-jar/verify.groovy                  | 37 +++++------
 src/it/snapshot-pom/verify.groovy                  | 35 +++++-----
 37 files changed, 457 insertions(+), 535 deletions(-)

diff --git a/src/it/3rd-party-jar-with-extras/verify.groovy 
b/src/it/3rd-party-jar-with-extras/verify.groovy
index 605ecb0..e56420d 100644
--- a/src/it/3rd-party-jar-with-extras/verify.groovy
+++ b/src/it/3rd-party-jar-with-extras/verify.groovy
@@ -17,41 +17,35 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
 String[] paths =
-[
-    "org/apache/maven/its/deploy/tpjwop1/test/maven-metadata.xml",
-    "org/apache/maven/its/deploy/tpjwop1/test/1.0/test-1.0.jar",
-    "org/apache/maven/its/deploy/tpjwop1/test/1.0/test-1.0.zip",
-    "org/apache/maven/its/deploy/tpjwop1/test/1.0/test-1.0-src.tar.gz",
-    "org/apache/maven/its/deploy/tpjwop1/test/1.0/test-1.0.tar.gz",
-];
+        [
+            "org/apache/maven/its/deploy/tpjwop1/test/maven-metadata.xml",
+            "org/apache/maven/its/deploy/tpjwop1/test/1.0/test-1.0.jar",
+            "org/apache/maven/its/deploy/tpjwop1/test/1.0/test-1.0.zip",
+            "org/apache/maven/its/deploy/tpjwop1/test/1.0/test-1.0-src.tar.gz",
+            "org/apache/maven/its/deploy/tpjwop1/test/1.0/test-1.0.tar.gz",
+        ]
 
-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())
     }
 }
 
 String[] missing =
-[
-    "org/apache/maven/its/deploy/tpjwop1/test/1.0/test-1.0.pom",
-];
+        ["org/apache/maven/its/deploy/tpjwop1/test/1.0/test-1.0.pom",]
 
-for ( String path : missing )
-{
-    File file = new File( new File( basedir, "target/repo" ), path );
-    System.out.println( "Checking for absence of " + file );
-    if ( file.exists() )
-    {
-        throw new FileNotFoundException( "Existent: " + file.getAbsolutePath() 
);
+for (String path : missing) {
+    File file = new File(new File(basedir, "target/repo"), path)
+    System.out.println("Checking for absence of " + file)
+    if (file.exists()) {
+        throw new FileNotFoundException("Existent: " + file.getAbsolutePath())
     }
 }
 
-return true;
+return true
diff --git a/src/it/3rd-party-jar-without-pom/verify.groovy 
b/src/it/3rd-party-jar-without-pom/verify.groovy
index 3e2d2a3..3a691c9 100644
--- a/src/it/3rd-party-jar-without-pom/verify.groovy
+++ b/src/it/3rd-party-jar-without-pom/verify.groovy
@@ -17,38 +17,32 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
 String[] paths =
-[
-    "org/apache/maven/its/deploy/tpjwop2/test/maven-metadata.xml",
-    "org/apache/maven/its/deploy/tpjwop2/test/1.0/test-1.0.jar",
-];
+        [
+            "org/apache/maven/its/deploy/tpjwop2/test/maven-metadata.xml",
+            "org/apache/maven/its/deploy/tpjwop2/test/1.0/test-1.0.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())
     }
 }
 
 String[] missing =
-[
-    "org/apache/maven/its/deploy/tpjwop2/test/1.0/test-1.0.pom",
-];
+        ["org/apache/maven/its/deploy/tpjwop2/test/1.0/test-1.0.pom",]
 
-for ( String path : missing )
-{
-    File file = new File( new File( basedir, "target/repo" ), path );
-    System.out.println( "Checking for absence of " + file );
-    if ( file.exists() )
-    {
-        throw new FileNotFoundException( "Existent: " + file.getAbsolutePath() 
);
+for (String path : missing) {
+    File file = new File(new File(basedir, "target/repo"), path)
+    System.out.println("Checking for absence of " + file)
+    if (file.exists()) {
+        throw new FileNotFoundException("Existent: " + file.getAbsolutePath())
     }
 }
 
-return true;
+return true
diff --git a/src/it/3rd-party-pom-with-extras/verify.groovy 
b/src/it/3rd-party-pom-with-extras/verify.groovy
index 3174da3..7e5ac21 100644
--- a/src/it/3rd-party-pom-with-extras/verify.groovy
+++ b/src/it/3rd-party-pom-with-extras/verify.groovy
@@ -17,41 +17,35 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
 String[] paths =
-[
-    "org/apache/maven/its/deploy/tppwoc/test/maven-metadata.xml",
-    "org/apache/maven/its/deploy/tppwoc/test/1.0/test-1.0.pom",
-    "org/apache/maven/its/deploy/tppwoc/test/1.0/test-1.0.zip",
-    "org/apache/maven/its/deploy/tppwoc/test/1.0/test-1.0-src.tar.gz",
-    "org/apache/maven/its/deploy/tppwoc/test/1.0/test-1.0.tar.gz",
-];
+        [
+            "org/apache/maven/its/deploy/tppwoc/test/maven-metadata.xml",
+            "org/apache/maven/its/deploy/tppwoc/test/1.0/test-1.0.pom",
+            "org/apache/maven/its/deploy/tppwoc/test/1.0/test-1.0.zip",
+            "org/apache/maven/its/deploy/tppwoc/test/1.0/test-1.0-src.tar.gz",
+            "org/apache/maven/its/deploy/tppwoc/test/1.0/test-1.0.tar.gz",
+        ]
 
-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())
     }
 }
 
 String[] missing =
-[
-    "org/apache/maven/its/deploy/tppwoc/test/1.0/test-1.0.jar",
-];
+        ["org/apache/maven/its/deploy/tppwoc/test/1.0/test-1.0.jar",]
 
-for ( String path : missing )
-{
-    File file = new File( new File( basedir, "target/repo" ), path );
-    System.out.println( "Checking for absence of " + file );
-    if ( file.exists() )
-    {
-        throw new FileNotFoundException( "Existent: " + file.getAbsolutePath() 
);
+for (String path : missing) {
+    File file = new File(new File(basedir, "target/repo"), path)
+    System.out.println("Checking for absence of " + file)
+    if (file.exists()) {
+        throw new FileNotFoundException("Existent: " + file.getAbsolutePath())
     }
 }
 
-return true;
+return true
diff --git a/src/it/MDEPLOY-169_deploy-at-end-multithread/verify.groovy 
b/src/it/MDEPLOY-169_deploy-at-end-multithread/verify.groovy
index 43461cb..3dc9f3b 100644
--- a/src/it/MDEPLOY-169_deploy-at-end-multithread/verify.groovy
+++ b/src/it/MDEPLOY-169_deploy-at-end-multithread/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, "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-169/multithread/1.0/multithread-1.0.pom" 
).exists()
-assert new File( module1Repo, 
"org/apache/maven/its/mdeploy-169/module1/1.0/module1-1.0.pom" ).exists()
-assert new File( module2Repo, 
"org/apache/maven/its/mdeploy-169/module2/1.0/module2-1.0.pom" ).exists()
+assert new File(rootRepo, 
"org/apache/maven/its/mdeploy-169/multithread/1.0/multithread-1.0.pom").exists()
+assert new File(module1Repo, 
"org/apache/maven/its/mdeploy-169/module1/1.0/module1-1.0.pom").exists()
+assert new File(module2Repo, 
"org/apache/maven/its/mdeploy-169/module2/1.0/module2-1.0.pom").exists()
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-178_deployfile-with-embedded-pom/verify.groovy 
b/src/it/MDEPLOY-178_deployfile-with-embedded-pom/verify.groovy
index 181104a..a116060 100644
--- a/src/it/MDEPLOY-178_deployfile-with-embedded-pom/verify.groovy
+++ b/src/it/MDEPLOY-178_deployfile-with-embedded-pom/verify.groovy
@@ -17,13 +17,13 @@
  * under the License.
  */
 
-assert new File( basedir, 
"target/repo/org/apache/maven/plugins/deploy/its/mdeploy178/1.0/mdeploy178-1.0.jar"
 ).exists()
-File deployedPom = new File( basedir, 
"target/repo/org/apache/maven/plugins/deploy/its/mdeploy178/1.0/mdeploy178-1.0.pom"
 )
+assert new File(basedir, 
"target/repo/org/apache/maven/plugins/deploy/its/mdeploy178/1.0/mdeploy178-1.0.jar").exists()
+File deployedPom = new File(basedir, 
"target/repo/org/apache/maven/plugins/deploy/its/mdeploy178/1.0/mdeploy178-1.0.pom")
 assert deployedPom.exists()
 
-File buildLog = new File( basedir, 'build.log' )
+File buildLog = new File(basedir, 'build.log')
 assert buildLog.exists()
-assert buildLog.text.contains( "[DEBUG] Using 
META-INF/maven/org.apache.maven.plugins.deploy.its/mdeploy178/pom.xml as 
pomFile" )
+assert buildLog.text.contains("[DEBUG] Using 
META-INF/maven/org.apache.maven.plugins.deploy.its/mdeploy178/pom.xml as 
pomFile")
 
-def pomProject = new groovy.xml.XmlParser().parse( deployedPom )
-assert "https://issues.apache.org/jira/browse/MDEPLOY-178".equals( 
pomProject.get("url").text() )
\ No newline at end of file
+def pomProject = new groovy.xml.XmlParser().parse(deployedPom)
+assert 
"https://issues.apache.org/jira/browse/MDEPLOY-178".equals(pomProject.get("url").text())
\ No newline at end of file
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-212/verify.groovy b/src/it/MDEPLOY-212/verify.groovy
index 88f84cd..a679e62 100644
--- a/src/it/MDEPLOY-212/verify.groovy
+++ b/src/it/MDEPLOY-212/verify.groovy
@@ -17,40 +17,36 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
 String[] paths =
-[
-    "org/apache/maven/its/mdeploy-212/test/1.0/test-1.0.pom",
-    "org/apache/maven/its/mdeploy-212/test/1.0/test-1.0.tar.gz",
-    "org/apache/maven/its/mdeploy-212/test/1.0/test-1.0-it.zip",
-];
+        [
+            "org/apache/maven/its/mdeploy-212/test/1.0/test-1.0.pom",
+            "org/apache/maven/its/mdeploy-212/test/1.0/test-1.0.tar.gz",
+            "org/apache/maven/its/mdeploy-212/test/1.0/test-1.0-it.zip",
+        ]
 
-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())
     }
 }
 
 String[] missing =
-[
-    "org/apache/maven/its/mdeploy-212/test/1.0/test-1.0.jar",
-    "org/apache/maven/its/mdeploy-212/test/1.0/test-1.0-javadoc.jar",
-];
+        [
+            "org/apache/maven/its/mdeploy-212/test/1.0/test-1.0.jar",
+            "org/apache/maven/its/mdeploy-212/test/1.0/test-1.0-javadoc.jar",
+        ]
 
-for ( String path : missing )
-{
-    File file = new File( new File( basedir, "target/repo" ), path );
-    System.out.println( "Checking for absence of " + file );
-    if ( file.exists() )
-    {
-        throw new FileNotFoundException( "Existent: " + file.getAbsolutePath() 
);
+for (String path : missing) {
+    File file = new File(new File(basedir, "target/repo"), path)
+    System.out.println("Checking for absence of " + file)
+    if (file.exists()) {
+        throw new FileNotFoundException("Existent: " + file.getAbsolutePath())
     }
 }
 
-return true;
+return true
diff --git a/src/it/MDEPLOY-213/verify.groovy b/src/it/MDEPLOY-213/verify.groovy
index d7c7223..2d23ec6 100644
--- a/src/it/MDEPLOY-213/verify.groovy
+++ b/src/it/MDEPLOY-213/verify.groovy
@@ -17,26 +17,24 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
 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())
     }
 }
 
-return true;
+return true
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/alt-deploy-repo-with-dist-mgmt-snapshot/verify.groovy 
b/src/it/alt-deploy-repo-with-dist-mgmt-snapshot/verify.groovy
index 2e23820..bd1c659 100644
--- a/src/it/alt-deploy-repo-with-dist-mgmt-snapshot/verify.groovy
+++ b/src/it/alt-deploy-repo-with-dist-mgmt-snapshot/verify.groovy
@@ -17,37 +17,31 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
 String[] paths =
-[
-    "org/apache/maven/its/deploy/adrwdms/test/maven-metadata.xml",
-];
+        ["org/apache/maven/its/deploy/adrwdms/test/maven-metadata.xml",]
 String[] paths_absent =
-[
-    "org/apache/maven/its/deploy/adrwdms/test/1.0/test-1.0-SNAPSHOT.pom",
-    "org/apache/maven/its/deploy/adrwdms/test/1.0/test-1.0-SNAPSHOT.jar",
-];
+        [
+            
"org/apache/maven/its/deploy/adrwdms/test/1.0/test-1.0-SNAPSHOT.pom",
+            
"org/apache/maven/its/deploy/adrwdms/test/1.0/test-1.0-SNAPSHOT.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())
     }
 }
 
-for ( String path : paths_absent )
-{
-    File file = new File( new File( basedir, "target/repo" ), path );
-    System.out.println( "Checking for non existence of " + file );
-    if ( file.exists() )
-    {
-        throw new AssertionError( "File exists and shouldn't: " + 
file.getAbsolutePath() );
+for (String path : paths_absent) {
+    File file = new File(new File(basedir, "target/repo"), path)
+    System.out.println("Checking for non existence of " + file)
+    if (file.exists()) {
+        throw new AssertionError("File exists and shouldn't: " + 
file.getAbsolutePath())
     }
 }
 
-return true;
+return true
diff --git a/src/it/alt-deploy-repo-with-dist-mgmt/verify.groovy 
b/src/it/alt-deploy-repo-with-dist-mgmt/verify.groovy
index fb80c5f..58f7b52 100644
--- a/src/it/alt-deploy-repo-with-dist-mgmt/verify.groovy
+++ b/src/it/alt-deploy-repo-with-dist-mgmt/verify.groovy
@@ -17,24 +17,22 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
 String[] paths =
-[
-    "org/apache/maven/its/deploy/adrwdm/test/maven-metadata.xml",
-    "org/apache/maven/its/deploy/adrwdm/test/1.0/test-1.0.pom",
-    "org/apache/maven/its/deploy/adrwdm/test/1.0/test-1.0.jar",
-];
+        [
+            "org/apache/maven/its/deploy/adrwdm/test/maven-metadata.xml",
+            "org/apache/maven/its/deploy/adrwdm/test/1.0/test-1.0.pom",
+            "org/apache/maven/its/deploy/adrwdm/test/1.0/test-1.0.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())
     }
 }
 
-return true;
+return true
diff --git a/src/it/alt-deploy-repo-without-dist-mgmt/verify.groovy 
b/src/it/alt-deploy-repo-without-dist-mgmt/verify.groovy
index 3c3e1d7..9c9482d 100644
--- a/src/it/alt-deploy-repo-without-dist-mgmt/verify.groovy
+++ b/src/it/alt-deploy-repo-without-dist-mgmt/verify.groovy
@@ -17,24 +17,22 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
 String[] paths =
-[
-    "org/apache/maven/its/deploy/adrwodm/test/maven-metadata.xml",
-    "org/apache/maven/its/deploy/adrwodm/test/1.0/test-1.0.pom",
-    "org/apache/maven/its/deploy/adrwodm/test/1.0/test-1.0.jar",
-];
+        [
+            "org/apache/maven/its/deploy/adrwodm/test/maven-metadata.xml",
+            "org/apache/maven/its/deploy/adrwodm/test/1.0/test-1.0.pom",
+            "org/apache/maven/its/deploy/adrwodm/test/1.0/test-1.0.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())
     }
 }
 
-return true;
+return true
diff --git a/src/it/attach-release-jar/verify.groovy 
b/src/it/attach-release-jar/verify.groovy
index 15ae816..628717f 100644
--- a/src/it/attach-release-jar/verify.groovy
+++ b/src/it/attach-release-jar/verify.groovy
@@ -17,25 +17,23 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
 String[] paths =
-[
-    "org/apache/maven/its/deploy/arj/test/maven-metadata.xml",
-    "org/apache/maven/its/deploy/arj/test/1.0/test-1.0.pom",
-    "org/apache/maven/its/deploy/arj/test/1.0/test-1.0.jar",
-    "org/apache/maven/its/deploy/arj/test/1.0/test-1.0-sources.jar",
-];
+        [
+            "org/apache/maven/its/deploy/arj/test/maven-metadata.xml",
+            "org/apache/maven/its/deploy/arj/test/1.0/test-1.0.pom",
+            "org/apache/maven/its/deploy/arj/test/1.0/test-1.0.jar",
+            "org/apache/maven/its/deploy/arj/test/1.0/test-1.0-sources.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())
     }
 }
 
-return true;
+return true
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 8db4490..942f58f 100644
--- a/src/it/deploy-at-end-pass/verify.groovy
+++ b/src/it/deploy-at-end-pass/verify.groovy
@@ -17,16 +17,16 @@
  * 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()
 
-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" )
 
diff --git a/src/it/deploy-attached-sources/verify.groovy 
b/src/it/deploy-attached-sources/verify.groovy
index 2ba7b01..7eaefa4 100644
--- a/src/it/deploy-attached-sources/verify.groovy
+++ b/src/it/deploy-attached-sources/verify.groovy
@@ -18,62 +18,52 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
-import java.util.jar.*;
-import org.codehaus.plexus.util.*;
+import java.io.*
+import java.util.*
+import java.util.jar.*
+import org.codehaus.plexus.util.*
 
-boolean result = true;
+boolean result = true
 
-try
-{
-    File target = new File( basedir, "target" );
-    if ( !target.exists() || !target.isDirectory() )
-    {
-        System.err.println( "target file is missing or not a directory." );
-        return false;
+try {
+    File target = new File(basedir, "target")
+    if (!target.exists() || !target.isDirectory()) {
+        System.err.println("target file is missing or not a directory.")
+        return false
     }
 
-    File deployedDir = new File( target, 
"repo/org/apache/maven/its/deploy/test/1.0-SNAPSHOT/" );
-    if ( !deployedDir.isDirectory() )
-    {
-        System.err.println( "deployedDir is missing or is not a directory." );
-        return false;
+    File deployedDir = new File(target, 
"repo/org/apache/maven/its/deploy/test/1.0-SNAPSHOT/")
+    if (!deployedDir.isDirectory()) {
+        System.err.println("deployedDir is missing or is not a directory.")
+        return false
     }
 
-    boolean sourcesExists = false;
-    boolean javadocsExists = false;
+    boolean sourcesExists = false
+    boolean javadocsExists = false
 
-    String [] fileList = deployedDir.list();
-    for ( int i=0; i<fileList.length; ++i )
-    {
-        if ( fileList[i].endsWith( "-1-sources.jar" ) )
-        {
-            sourcesExists = true;
+    String [] fileList = deployedDir.list()
+    for (int i = 0; i<fileList.length; ++i) {
+        if (fileList[i].endsWith("-1-sources.jar")) {
+            sourcesExists = true
         }
-        if ( fileList[i].endsWith( "-1-javadoc.jar" ) )
-        {
-            javadocsExists = true;
+        if (fileList[i].endsWith("-1-javadoc.jar")) {
+            javadocsExists = true
         }
     }
 
-    if ( !sourcesExists )
-    {
-        System.err.println( "Unable to find deployed sources jar" );
-        return false;
+    if (!sourcesExists) {
+        System.err.println("Unable to find deployed sources jar")
+        return false
     }
 
-    if ( !javadocsExists )
-    {
-        System.err.println( "Unable to find deployed javadocs jar" );
-        return false;
+    if (!javadocsExists) {
+        System.err.println("Unable to find deployed javadocs jar")
+        return false
     }
-
 }
-catch( Throwable e )
-{
-    e.printStackTrace();
-    result = false;
+catch(Throwable e) {
+    e.printStackTrace()
+    result = false
 }
 
-return result;
+return result
diff --git a/src/it/deploy-bom/verify.groovy b/src/it/deploy-bom/verify.groovy
index 5f865e2..63aba9a 100644
--- a/src/it/deploy-bom/verify.groovy
+++ b/src/it/deploy-bom/verify.groovy
@@ -18,14 +18,16 @@
  */
 
 def expectedDeploys = [
-//        'org/apache/maven/its/deploy/bom/test/1.0/test-1.0-build.pom', - 
rc-2 fix
-        '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-build.pom', - 
rc-2 fix
+    '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/deploy-default-packaging/verify.groovy 
b/src/it/deploy-default-packaging/verify.groovy
index d84d286..e7d41a9 100644
--- a/src/it/deploy-default-packaging/verify.groovy
+++ b/src/it/deploy-default-packaging/verify.groovy
@@ -18,34 +18,29 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
-import java.util.jar.*;
-import org.codehaus.plexus.util.*;
+import java.io.*
+import java.util.*
+import java.util.jar.*
+import org.codehaus.plexus.util.*
 
-boolean result = true;
+boolean result = true
 
-try
-{
-    File target = new File( basedir, "target" );
-    if ( !target.exists() || !target.isDirectory() )
-    {
-        System.err.println( "target file is missing or not a directory." );
-        return false;
+try {
+    File target = new File(basedir, "target")
+    if (!target.exists() || !target.isDirectory()) {
+        System.err.println("target file is missing or not a directory.")
+        return false
     }
 
-    File deployedFile = new File( target, 
"repo/org/apache/maven/test/test/1.1/test-1.1.jar" );
-    if ( !deployedFile.isFile() )
-    {
-        System.err.println( "Deployed file is missing or is not a directory: " 
+ deployedFile);
-        return false;
+    File deployedFile = new File(target, 
"repo/org/apache/maven/test/test/1.1/test-1.1.jar")
+    if (!deployedFile.isFile()) {
+        System.err.println("Deployed file is missing or is not a directory: " 
+ deployedFile)
+        return false
     }
-
 }
-catch( Throwable e )
-{
-    e.printStackTrace();
-    result = false;
+catch(Throwable e) {
+    e.printStackTrace()
+    result = false
 }
 
-return result;
+return result
diff --git a/src/it/deployfile-snapshot-skip-fail/verify.groovy 
b/src/it/deployfile-snapshot-skip-fail/verify.groovy
index 21ef0c7..e92fabc 100644
--- a/src/it/deployfile-snapshot-skip-fail/verify.groovy
+++ b/src/it/deployfile-snapshot-skip-fail/verify.groovy
@@ -20,8 +20,12 @@
 File deployedDir = new File(basedir, 
"target/repo/org/apache/maven/plugins/deploy/its/deployfile-snapshot-skip-fail/1.0-SNAPSHOT")
 assert deployedDir.exists()
 assert deployedDir.isDirectory()
-assert deployedDir.listFiles({ File file, String name -> 
name.matches("deployfile-snapshot-skip-fail-1\\.0-.*\\.jar") } as 
FilenameFilter).length == 1
-assert deployedDir.listFiles({ File file, String name -> 
name.matches("deployfile-snapshot-skip-fail-1\\.0-.*\\.pom") } as 
FilenameFilter).length == 1
+assert deployedDir.listFiles({ File file, String name ->
+    name.matches("deployfile-snapshot-skip-fail-1\\.0-.*\\.jar")
+} as FilenameFilter).length == 1
+assert deployedDir.listFiles({ File file, String name ->
+    name.matches("deployfile-snapshot-skip-fail-1\\.0-.*\\.pom")
+} as FilenameFilter).length == 1
 
 File buildLog = new File(basedir, 'build.log')
 assert buildLog.exists()
diff --git a/src/it/external-release-jar/verify.groovy 
b/src/it/external-release-jar/verify.groovy
index fb0153b..e021916 100644
--- a/src/it/external-release-jar/verify.groovy
+++ b/src/it/external-release-jar/verify.groovy
@@ -17,24 +17,22 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
 String[] paths =
-[
-    "org/apache/maven/its/deploy/erj/test/maven-metadata.xml",
-    "org/apache/maven/its/deploy/erj/test/1.0/test-1.0.pom",
-    "org/apache/maven/its/deploy/erj/test/1.0/test-1.0.jar",
-];
+        [
+            "org/apache/maven/its/deploy/erj/test/maven-metadata.xml",
+            "org/apache/maven/its/deploy/erj/test/1.0/test-1.0.pom",
+            "org/apache/maven/its/deploy/erj/test/1.0/test-1.0.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())
     }
 }
 
-return true;
+return true
diff --git a/src/it/gav-validation/verify.groovy 
b/src/it/gav-validation/verify.groovy
index 64caa90..c38b5c5 100644
--- a/src/it/gav-validation/verify.groovy
+++ b/src/it/gav-validation/verify.groovy
@@ -18,18 +18,15 @@
  */
 
 String[] paths =
-[
-    "org/apache/maven/its/deploy/gv",
-];
+        ["org/apache/maven/its/deploy/gv",]
 
-for ( String path : paths )
-{
-    assert !new File( new File( basedir, "target/repo" ), path ).exists()
+for (String path : paths) {
+    assert !new File(new File(basedir, "target/repo"), path).exists()
 }
 
-File buildLog = new File( basedir, 'build.log' )
+File buildLog = new File(basedir, 'build.log')
 assert buildLog.exists()
-assert buildLog.text.contains( "The artifact information is incomplete" )
-assert buildLog.text.contains( "The artifact information is not valid" )
+assert buildLog.text.contains("The artifact information is incomplete")
+assert buildLog.text.contains("The artifact information is not valid")
 
-return true;
+return true
diff --git a/src/it/mdeploy-45-test/verify.groovy 
b/src/it/mdeploy-45-test/verify.groovy
index 320e280..f6f83ee 100644
--- a/src/it/mdeploy-45-test/verify.groovy
+++ b/src/it/mdeploy-45-test/verify.groovy
@@ -18,34 +18,29 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
-import java.util.jar.*;
-import org.codehaus.plexus.util.*;
+import java.io.*
+import java.util.*
+import java.util.jar.*
+import org.codehaus.plexus.util.*
 
-boolean result = true;
+boolean result = true
 
-try
-{
-    File target = new File( basedir, "target" );
-    if ( !target.exists() || !target.isDirectory() )
-    {
-        System.err.println( "target file is missing or not a directory." );
-        return false;
+try {
+    File target = new File(basedir, "target")
+    if (!target.exists() || !target.isDirectory()) {
+        System.err.println("target file is missing or not a directory.")
+        return false
     }
 
-    File deployedFile = new File( target, 
"org/apache/maven/its/deploy/45/test/0.1/test-0.1-mdp45.war" );
-    if ( !deployedFile.exists() || deployedFile.isDirectory() )
-    {
-        System.err.println( "deployedFile file is missing or a directory." );
-        return false;
+    File deployedFile = new File(target, 
"org/apache/maven/its/deploy/45/test/0.1/test-0.1-mdp45.war")
+    if (!deployedFile.exists() || deployedFile.isDirectory()) {
+        System.err.println("deployedFile file is missing or a directory.")
+        return false
     }
-
 }
-catch( Throwable e )
-{
-    e.printStackTrace();
-    result = false;
+catch(Throwable e) {
+    e.printStackTrace()
+    result = false
 }
 
-return result;
+return result
diff --git a/src/it/no-main-artifact-1/verify.groovy 
b/src/it/no-main-artifact-1/verify.groovy
index 9442aa7..7e3e5dd 100644
--- a/src/it/no-main-artifact-1/verify.groovy
+++ b/src/it/no-main-artifact-1/verify.groovy
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-def buildLog = new File ( basedir, "build.log")
+def buildLog = new File(basedir, "build.log")
 
-assert buildLog.text.contains( "The packaging plugin for this project did not 
assign "
-                                   + "a main file to the project but it has 
attachments. Change packaging to 'pom'." )
\ No newline at end of file
+assert buildLog.text.contains("The packaging plugin for this project did not 
assign "
++ "a main file to the project but it has attachments. Change packaging to 
'pom'.")
\ No newline at end of file
diff --git a/src/it/no-main-artifact-2/verify.groovy 
b/src/it/no-main-artifact-2/verify.groovy
index 9442aa7..7e3e5dd 100644
--- a/src/it/no-main-artifact-2/verify.groovy
+++ b/src/it/no-main-artifact-2/verify.groovy
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-def buildLog = new File ( basedir, "build.log")
+def buildLog = new File(basedir, "build.log")
 
-assert buildLog.text.contains( "The packaging plugin for this project did not 
assign "
-                                   + "a main file to the project but it has 
attachments. Change packaging to 'pom'." )
\ No newline at end of file
+assert buildLog.text.contains("The packaging plugin for this project did not 
assign "
++ "a main file to the project but it has attachments. Change packaging to 
'pom'.")
\ No newline at end of file
diff --git a/src/it/no-main-artifact-snapshot/setup.groovy 
b/src/it/no-main-artifact-snapshot/setup.groovy
index 69fe703..3688bcb 100644
--- a/src/it/no-main-artifact-snapshot/setup.groovy
+++ b/src/it/no-main-artifact-snapshot/setup.groovy
@@ -17,17 +17,17 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
-import org.codehaus.plexus.util.*;
+import org.codehaus.plexus.util.*
 
-File file = new File( localRepositoryPath, "org/apache/maven/its/deploy/nmas" 
);
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
+File file = new File(localRepositoryPath, "org/apache/maven/its/deploy/nmas")
+System.out.println("Deleting " + file)
+FileUtils.deleteDirectory(file)
 
-file = new File( basedir, "target/repo" );
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
+file = new File(basedir, "target/repo")
+System.out.println("Deleting " + file)
+FileUtils.deleteDirectory(file)
 
-return true;
+return true
diff --git a/src/it/no-main-artifact-snapshot/verify.groovy 
b/src/it/no-main-artifact-snapshot/verify.groovy
index 954cdde..affbbb6 100644
--- a/src/it/no-main-artifact-snapshot/verify.groovy
+++ b/src/it/no-main-artifact-snapshot/verify.groovy
@@ -17,45 +17,38 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
-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()
 
-if ( files == null )
-{
-    throw new FileNotFoundException( "Missing directory: " + dir );
+if (files == null) {
+    throw new FileNotFoundException("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)
     }
 }
 
-if ( pom == null )
-{
-    throw new FileNotFoundException( "Missing timestamped POM" );
+if (pom == null) {
+    throw new FileNotFoundException("Missing timestamped POM")
 }
 
-if ( jar == null )
-{
-    throw new FileNotFoundException( "Missing timestamped JAR" );
+if (jar == null) {
+    throw new FileNotFoundException("Missing timestamped JAR")
 }
 
-if ( !jar.equals( pom ) )
-{
-    throw new IllegalStateException( "Timestamp mismatch " + jar + " vs " + 
pom );
+if (!jar.equals(pom)) {
+    throw new IllegalStateException("Timestamp mismatch " + jar + " vs " + pom)
 }
 
-return true;
+return true
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/release-jar/verify.groovy b/src/it/release-jar/verify.groovy
index dc87b31..6380f5f 100644
--- a/src/it/release-jar/verify.groovy
+++ b/src/it/release-jar/verify.groovy
@@ -17,24 +17,22 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
 String[] paths =
-[
-    "org/apache/maven/its/deploy/rj/test/maven-metadata.xml",
-    "org/apache/maven/its/deploy/rj/test/1.0/test-1.0.pom",
-    "org/apache/maven/its/deploy/rj/test/1.0/test-1.0.jar",
-];
+        [
+            "org/apache/maven/its/deploy/rj/test/maven-metadata.xml",
+            "org/apache/maven/its/deploy/rj/test/1.0/test-1.0.pom",
+            "org/apache/maven/its/deploy/rj/test/1.0/test-1.0.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())
     }
 }
 
-return true;
+return true
diff --git a/src/it/release-pom/verify.groovy b/src/it/release-pom/verify.groovy
index 0cfe9ba..27b082b 100644
--- a/src/it/release-pom/verify.groovy
+++ b/src/it/release-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/rp/test/maven-metadata.xml",
-    "org/apache/maven/its/deploy/rp/test/1.0/test-1.0.pom",
-];
+        [
+            "org/apache/maven/its/deploy/rp/test/maven-metadata.xml",
+            "org/apache/maven/its/deploy/rp/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')
diff --git a/src/it/skip-release-jar/verify.groovy 
b/src/it/skip-release-jar/verify.groovy
index e858772..98b7518 100644
--- a/src/it/skip-release-jar/verify.groovy
+++ b/src/it/skip-release-jar/verify.groovy
@@ -17,24 +17,22 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
 String[] paths =
-[
-    "org/apache/maven/its/deploy/srj/test/maven-metadata.xml",
-    "org/apache/maven/its/deploy/srj/test/1.0/test-1.0.pom",
-    "org/apache/maven/its/deploy/srj/test/1.0/test-1.0.jar",
-];
+        [
+            "org/apache/maven/its/deploy/srj/test/maven-metadata.xml",
+            "org/apache/maven/its/deploy/srj/test/1.0/test-1.0.pom",
+            "org/apache/maven/its/deploy/srj/test/1.0/test-1.0.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( "File has been deployed: " + 
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("File has been deployed: " + 
file.getAbsolutePath())
     }
 }
 
-return true;
+return true
diff --git a/src/it/skip-snapshot-jar/verify.groovy 
b/src/it/skip-snapshot-jar/verify.groovy
index 5e99fbd..bbd2295 100644
--- a/src/it/skip-snapshot-jar/verify.groovy
+++ b/src/it/skip-snapshot-jar/verify.groovy
@@ -17,30 +17,27 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
 String[] paths =
-[
-    "org/apache/maven/its/deploy/ssj/test/maven-metadata.xml",
-    
"org/apache/maven/its/deploy/ssj/test/1.0.0-SNAPSHOT/test-1.0.0-SNAPSHOT.pom",
-    
"org/apache/maven/its/deploy/ssj/test/1.0.0-SNAPSHOT/test-1.0.0-SNAPSHOT.jar",
-];
+        [
+            "org/apache/maven/its/deploy/ssj/test/maven-metadata.xml",
+            
"org/apache/maven/its/deploy/ssj/test/1.0.0-SNAPSHOT/test-1.0.0-SNAPSHOT.pom",
+            
"org/apache/maven/its/deploy/ssj/test/1.0.0-SNAPSHOT/test-1.0.0-SNAPSHOT.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 IllegalStateException( "File has been deployed: " + 
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 IllegalStateException("File has been deployed: " + 
file.getAbsolutePath())
     }
 }
 
-File directory = new File( new File( basedir, "target/repo" ), 
"org/apache/maven/its/deploy/ssj/test/1.0.0-SNAPSHOT/" );
-if ( directory.exists() )
-{
-    throw new IllegalStateException( "directory exists: " + 
directory.getAbsolutePath() );
+File directory = new File(new File(basedir, "target/repo"), 
"org/apache/maven/its/deploy/ssj/test/1.0.0-SNAPSHOT/")
+if (directory.exists()) {
+    throw new IllegalStateException("directory exists: " + 
directory.getAbsolutePath())
 }
 
-return true;
+return true
diff --git a/src/it/snapshot-jar/verify.groovy 
b/src/it/snapshot-jar/verify.groovy
index d9696f7..6881fe5 100644
--- a/src/it/snapshot-jar/verify.groovy
+++ b/src/it/snapshot-jar/verify.groovy
@@ -17,32 +17,29 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
-import org.codehaus.plexus.util.*;
+import org.codehaus.plexus.util.*
 
 String[] paths =
-[
-    "org/apache/maven/its/deploy/sj/test/maven-metadata.xml",
-    "org/apache/maven/its/deploy/sj/test/1.0-SNAPSHOT/maven-metadata.xml",
-    "org/apache/maven/its/deploy/sj/test/1.0-SNAPSHOT/test-1.0-*.pom",
-    "org/apache/maven/its/deploy/sj/test/1.0-SNAPSHOT/test-1.0-*.jar",
-];
+        [
+            "org/apache/maven/its/deploy/sj/test/maven-metadata.xml",
+            
"org/apache/maven/its/deploy/sj/test/1.0-SNAPSHOT/maven-metadata.xml",
+            "org/apache/maven/its/deploy/sj/test/1.0-SNAPSHOT/test-1.0-*.pom",
+            "org/apache/maven/its/deploy/sj/test/1.0-SNAPSHOT/test-1.0-*.jar",
+        ]
 
-File repoDir = new File( basedir, "target/repo" );
+File repoDir = new File(basedir, "target/repo")
 
-for ( String path : paths )
-{
-    File file = new File( repoDir, path );
-    System.out.println( "Checking for existence of " + file );
-    if ( !file.isFile() )
-    {
-        if ( FileUtils.getFiles( repoDir, path, null ).isEmpty() )
-        {
-            throw new FileNotFoundException( "Missing: " + 
file.getAbsolutePath() );
+for (String path : paths) {
+    File file = new File(repoDir, path)
+    System.out.println("Checking for existence of " + file)
+    if (!file.isFile()) {
+        if (FileUtils.getFiles(repoDir, path, null).isEmpty()) {
+            throw new FileNotFoundException("Missing: " + 
file.getAbsolutePath())
         }
     }
 }
 
-return true;
+return true
diff --git a/src/it/snapshot-pom/verify.groovy 
b/src/it/snapshot-pom/verify.groovy
index 36a1acb..fe11a4b 100644
--- a/src/it/snapshot-pom/verify.groovy
+++ b/src/it/snapshot-pom/verify.groovy
@@ -17,31 +17,28 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
+import java.io.*
+import java.util.*
 
-import org.codehaus.plexus.util.*;
+import org.codehaus.plexus.util.*
 
 String[] paths =
-[
-    "org/apache/maven/its/deploy/sp/test/maven-metadata.xml",
-    "org/apache/maven/its/deploy/sp/test/1.0-SNAPSHOT/maven-metadata.xml",
-    "org/apache/maven/its/deploy/sp/test/1.0-SNAPSHOT/test-1.0-*.pom",
-];
+        [
+            "org/apache/maven/its/deploy/sp/test/maven-metadata.xml",
+            
"org/apache/maven/its/deploy/sp/test/1.0-SNAPSHOT/maven-metadata.xml",
+            "org/apache/maven/its/deploy/sp/test/1.0-SNAPSHOT/test-1.0-*.pom",
+        ]
 
-File repoDir = new File( basedir, "target/repo" );
+File repoDir = new File(basedir, "target/repo")
 
-for ( String path : paths )
-{
-    File file = new File( repoDir, path );
-    System.out.println( "Checking for existence of " + file );
-    if ( !file.isFile() )
-    {
-        if ( FileUtils.getFiles( repoDir, path, null ).isEmpty() )
-        {
-            throw new FileNotFoundException( "Missing: " + 
file.getAbsolutePath() );
+for (String path : paths) {
+    File file = new File(repoDir, path)
+    System.out.println("Checking for existence of " + file)
+    if (!file.isFile()) {
+        if (FileUtils.getFiles(repoDir, path, null).isEmpty()) {
+            throw new FileNotFoundException("Missing: " + 
file.getAbsolutePath())
         }
     }
 }
 
-return true;
+return true

Reply via email to