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-help-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new c02e136 Format Groovy IT scripts
c02e136 is described below
commit c02e136e4031e5fe13ea05e0c4fcd6974fff7658
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Wed Nov 25 20:33:38 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/projects/active-profiles/verify.groovy | 6 ++---
.../active-profiles_multimodule/verify.groovy | 10 ++++-----
.../projects/all-profiles-parent-pom/verify.groovy | 14 ++++++------
src/it/projects/all-profiles/verify.groovy | 8 +++----
.../describe-cmd-with-goal-report/verify.groovy | 12 +++++-----
.../projects/describe-cmd-with-goal/verify.groovy | 12 +++++-----
src/it/projects/describe-cmd/verify.groovy | 10 ++++-----
.../verify.groovy | 14 ++++++------
.../describe-plugin-without-name/verify.groovy | 14 ++++++------
.../describe-prefix-and-invalid-mojo/verify.groovy | 2 +-
.../projects/effective-pom-artifact/verify.groovy | 4 ++--
.../effective-pom-from-lifecycle/verify.groovy | 16 ++++++-------
.../verify.groovy | 10 ++++-----
.../verify.groovy | 4 ++--
.../effective-pom-multimodule/verify.groovy | 4 ++--
.../projects/effective-pom-verbose/verify.groovy | 6 ++---
.../effective-pom_properties/verify.groovy | 26 +++++++++++-----------
.../verify.groovy | 10 ++++-----
.../effective-settings_deep-clone/verify.groovy | 4 ++--
.../verify.groovy | 4 ++--
.../verify.groovy | 12 +++++++---
.../evaluate-null-object-with-output/verify.groovy | 4 ++--
src/it/projects/evaluate-null-object/verify.groovy | 6 ++---
.../evaluate-settings-servers/verify.groovy | 8 +++++--
.../verify.groovy | 6 ++---
src/it/projects/evaluate/verify.groovy | 6 ++---
26 files changed, 121 insertions(+), 111 deletions(-)
diff --git a/src/it/projects/active-profiles/verify.groovy
b/src/it/projects/active-profiles/verify.groovy
index a747d8a..1cc37a0 100644
--- a/src/it/projects/active-profiles/verify.groovy
+++ b/src/it/projects/active-profiles/verify.groovy
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-
-def buildLog = new File(basedir, 'build.log');
+
+def buildLog = new File(basedir, 'build.log')
assert buildLog.exists()
-assert 1 == buildLog.text.count( ' - it-repo (source: external)' )
+assert 1 == buildLog.text.count(' - it-repo (source: external)')
diff --git a/src/it/projects/active-profiles_multimodule/verify.groovy
b/src/it/projects/active-profiles_multimodule/verify.groovy
index c207267..a3f9fc4 100644
--- a/src/it/projects/active-profiles_multimodule/verify.groovy
+++ b/src/it/projects/active-profiles_multimodule/verify.groovy
@@ -17,10 +17,10 @@
* under the License.
*/
-def buildLog = new File( basedir, 'build.log' );
+def buildLog = new File(basedir, 'build.log')
assert buildLog.exists()
-assert 2 == buildLog.text.count( ' - mph79 (source:
org.apache.maven.its.help:active-profiles_multimodule:1.0-SNAPSHOT)' )
-assert 1 == buildLog.text.count( ' - mph79-child (source:
org.apache.maven.its.help:active-profiles_multimodule-module:1.0-SNAPSHOT)' )
-assert 0 == buildLog.text.count( ' - mph79-child-inactive' )
-assert 2 == buildLog.text.count( ' - it-repo (source: external)' )
+assert 2 == buildLog.text.count(' - mph79 (source:
org.apache.maven.its.help:active-profiles_multimodule:1.0-SNAPSHOT)')
+assert 1 == buildLog.text.count(' - mph79-child (source:
org.apache.maven.its.help:active-profiles_multimodule-module:1.0-SNAPSHOT)')
+assert 0 == buildLog.text.count(' - mph79-child-inactive')
+assert 2 == buildLog.text.count(' - it-repo (source: external)')
diff --git a/src/it/projects/all-profiles-parent-pom/verify.groovy
b/src/it/projects/all-profiles-parent-pom/verify.groovy
index d0c5e48..56dee95 100644
--- a/src/it/projects/all-profiles-parent-pom/verify.groovy
+++ b/src/it/projects/all-profiles-parent-pom/verify.groovy
@@ -17,13 +17,13 @@
* under the License.
*/
-def buildLog = new File( basedir, 'build.log' );
+def buildLog = new File(basedir, 'build.log')
assert buildLog.exists()
// 2 = parent + child
-assert 2 == buildLog.text.count( ' Profile Id: it-repo (Active: true, Source:
settings.xml)' )
-assert !buildLog.text.contains( ' Profile Id: it-repo (Active: true, Source:
pom)' )
-assert 2 == buildLog.text.count( ' Profile Id: profile-active-from-parent-pom
(Active: true, Source: pom)' )
-assert 2 == buildLog.text.count( ' Profile Id:
profile-inactive-from-parent-pom (Active: false, Source: pom)' )
-assert 1 == buildLog.text.count( ' Profile Id: profile-active-from-child-pom
(Active: true, Source: pom)' )
-assert 1 == buildLog.text.count( ' Profile Id:
profile-inactive-from-child-pom (Active: false, Source: pom)' )
+assert 2 == buildLog.text.count(' Profile Id: it-repo (Active: true, Source:
settings.xml)')
+assert !buildLog.text.contains(' Profile Id: it-repo (Active: true, Source:
pom)')
+assert 2 == buildLog.text.count(' Profile Id: profile-active-from-parent-pom
(Active: true, Source: pom)')
+assert 2 == buildLog.text.count(' Profile Id:
profile-inactive-from-parent-pom (Active: false, Source: pom)')
+assert 1 == buildLog.text.count(' Profile Id: profile-active-from-child-pom
(Active: true, Source: pom)')
+assert 1 == buildLog.text.count(' Profile Id: profile-inactive-from-child-pom
(Active: false, Source: pom)')
diff --git a/src/it/projects/all-profiles/verify.groovy
b/src/it/projects/all-profiles/verify.groovy
index 6657f73..c94d35a 100644
--- a/src/it/projects/all-profiles/verify.groovy
+++ b/src/it/projects/all-profiles/verify.groovy
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-def buildLog = new File( basedir, 'build.log' );
+def buildLog = new File(basedir, 'build.log')
assert buildLog.exists()
-assert 1 == buildLog.text.count( ' Profile Id: it-repo (Active: true, Source:
settings.xml)' )
-assert 1 == buildLog.text.count( ' Profile Id: profile-active-from-pom
(Active: true, Source: pom)' )
-assert 1 == buildLog.text.count( ' Profile Id: profile-inactive-from-pom
(Active: false, Source: pom)' )
+assert 1 == buildLog.text.count(' Profile Id: it-repo (Active: true, Source:
settings.xml)')
+assert 1 == buildLog.text.count(' Profile Id: profile-active-from-pom
(Active: true, Source: pom)')
+assert 1 == buildLog.text.count(' Profile Id: profile-inactive-from-pom
(Active: false, Source: pom)')
diff --git a/src/it/projects/describe-cmd-with-goal-report/verify.groovy
b/src/it/projects/describe-cmd-with-goal-report/verify.groovy
index 1793de5..de28b2d 100644
--- a/src/it/projects/describe-cmd-with-goal-report/verify.groovy
+++ b/src/it/projects/describe-cmd-with-goal-report/verify.groovy
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-def buildLog = new File(basedir, 'changes.log');
+def buildLog = new File(basedir, 'changes.log')
assert buildLog.exists()
-assert buildLog.text.contains('Note: This goal should be used as a Maven
report.');
+assert buildLog.text.contains('Note: This goal should be used as a Maven
report.')
-buildLog = new File(basedir, 'javadoc.log');
+buildLog = new File(basedir, 'javadoc.log')
assert buildLog.exists()
-assert buildLog.text.contains('Note: This goal should be used as a Maven
report.');
+assert buildLog.text.contains('Note: This goal should be used as a Maven
report.')
-buildLog = new File(basedir, 'assembly.log');
+buildLog = new File(basedir, 'assembly.log')
assert buildLog.exists()
-assert !buildLog.text.contains('Note: This goal should be used as a Maven
report.');
+assert !buildLog.text.contains('Note: This goal should be used as a Maven
report.')
diff --git a/src/it/projects/describe-cmd-with-goal/verify.groovy
b/src/it/projects/describe-cmd-with-goal/verify.groovy
index 4e2dc2b..16f823a 100644
--- a/src/it/projects/describe-cmd-with-goal/verify.groovy
+++ b/src/it/projects/describe-cmd-with-goal/verify.groovy
@@ -17,13 +17,13 @@
* under the License.
*/
-def result = new File(basedir, 'result.txt').text;
+def result = new File(basedir, 'result.txt').text
-def ls = System.lineSeparator();
+def ls = System.lineSeparator()
assert result.contains("'deploy:deploy' is a plugin goal (aka mojo)." + ls +
- "Mojo: 'deploy:deploy'" + ls +
- "deploy:deploy" + ls +
- " Description:")
+"Mojo: 'deploy:deploy'" + ls +
+"deploy:deploy" + ls +
+" Description:")
-return true;
+return true
diff --git a/src/it/projects/describe-cmd/verify.groovy
b/src/it/projects/describe-cmd/verify.groovy
index abc8921..340cfa5 100644
--- a/src/it/projects/describe-cmd/verify.groovy
+++ b/src/it/projects/describe-cmd/verify.groovy
@@ -17,15 +17,15 @@
* under the License.
*/
-def result = new File(basedir, 'result-deploy.txt').text;
+def result = new File(basedir, 'result-deploy.txt').text
-def ls = System.lineSeparator();
+def ls = System.lineSeparator()
assert result.contains("'deploy' is a phase corresponding to this plugin:" +
ls +
- "org.apache.maven.plugins:maven-deploy-plugin")
+"org.apache.maven.plugins:maven-deploy-plugin")
-result = new File(basedir, 'result-site.txt').text;
+result = new File(basedir, 'result-site.txt').text
assert result.contains("'site' is a phase within the 'site' lifecycle, which
has the following phases:")
-return true;
+return true
diff --git a/src/it/projects/describe-plugin-in-plugin-management/verify.groovy
b/src/it/projects/describe-plugin-in-plugin-management/verify.groovy
index e15e002..f0a1f60 100644
--- a/src/it/projects/describe-plugin-in-plugin-management/verify.groovy
+++ b/src/it/projects/describe-plugin-in-plugin-management/verify.groovy
@@ -17,14 +17,14 @@
* under the License.
*/
-def result = new File(basedir, 'result.txt').text;
-def ls = System.lineSeparator();
+def result = new File(basedir, 'result.txt').text
+def ls = System.lineSeparator()
assert result.contains(
- "Group Id: org.apache.maven.plugins" + ls +
- "Artifact Id: maven-surefire-plugin" + ls +
- "Version: " + surefireversion + ls +
- "Goal Prefix: surefire"
+"Group Id: org.apache.maven.plugins" + ls +
+"Artifact Id: maven-surefire-plugin" + ls +
+"Version: " + surefireversion + ls +
+"Goal Prefix: surefire"
)
-return true;
+return true
diff --git a/src/it/projects/describe-plugin-without-name/verify.groovy
b/src/it/projects/describe-plugin-without-name/verify.groovy
index a6b928a..59e9b24 100644
--- a/src/it/projects/describe-plugin-without-name/verify.groovy
+++ b/src/it/projects/describe-plugin-without-name/verify.groovy
@@ -17,14 +17,14 @@
* under the License.
*/
-def result = new File(basedir, 'result.txt').text;
+def result = new File(basedir, 'result.txt').text
-def ls = System.lineSeparator();
+def ls = System.lineSeparator()
-assert result.contains( "Name: Maven Help Plugin" )
+assert result.contains("Name: Maven Help Plugin")
-assert result.contains( "Group Id: org.apache.maven.plugins" + ls +
- "Artifact Id: maven-help-plugin" + ls +
- "Version: 2.0" )
+assert result.contains("Group Id: org.apache.maven.plugins" + ls +
+"Artifact Id: maven-help-plugin" + ls +
+"Version: 2.0")
-return true;
+return true
diff --git a/src/it/projects/describe-prefix-and-invalid-mojo/verify.groovy
b/src/it/projects/describe-prefix-and-invalid-mojo/verify.groovy
index ce05d41..438f82d 100644
--- a/src/it/projects/describe-prefix-and-invalid-mojo/verify.groovy
+++ b/src/it/projects/describe-prefix-and-invalid-mojo/verify.groovy
@@ -18,4 +18,4 @@
*/
content = new File(basedir, 'build.log').text
-assert content.indexOf( "NullPointerException" ) < 0
\ No newline at end of file
+assert content.indexOf("NullPointerException") < 0
\ No newline at end of file
diff --git a/src/it/projects/effective-pom-artifact/verify.groovy
b/src/it/projects/effective-pom-artifact/verify.groovy
index 56ce53e..f4b748a 100644
--- a/src/it/projects/effective-pom-artifact/verify.groovy
+++ b/src/it/projects/effective-pom-artifact/verify.groovy
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-def result = new File(basedir, 'result.txt');
+def result = new File(basedir, 'result.txt')
assert result.exists()
-def LS = System.lineSeparator()
+def LS = System.lineSeparator()
assert result.text.find('(?s)' +
' <groupId>org.apache.maven.plugins</groupId>' + LS +
' <artifactId>maven-help-plugin</artifactId>'
diff --git a/src/it/projects/effective-pom-from-lifecycle/verify.groovy
b/src/it/projects/effective-pom-from-lifecycle/verify.groovy
index 3f60e68..30abe3a 100644
--- a/src/it/projects/effective-pom-from-lifecycle/verify.groovy
+++ b/src/it/projects/effective-pom-from-lifecycle/verify.groovy
@@ -17,14 +17,14 @@
* under the License.
*/
-String content = new File( basedir, "result.txt" ).text
+String content = new File(basedir, "result.txt").text
-assert content.contains( "<projects>" )
-assert content.contains( "org.apache.maven.its.help:test:pom:1.0" )
-assert content.contains( "org.apache.maven.its.help:module:pom:1.0" )
+assert content.contains("<projects>")
+assert content.contains("org.apache.maven.its.help:test:pom:1.0")
+assert content.contains("org.apache.maven.its.help:module:pom:1.0")
-content = new File( basedir, "module/result.txt" ).text
+content = new File(basedir, "module/result.txt").text
-assert !content.contains( "<projects>" )
-assert !content.contains( "org.apache.maven.its.help:test:pom:1.0" )
-assert content.contains( "org.apache.maven.its.help:module:pom:1.0" )
+assert !content.contains("<projects>")
+assert !content.contains("org.apache.maven.its.help:test:pom:1.0")
+assert content.contains("org.apache.maven.its.help:module:pom:1.0")
diff --git a/src/it/projects/effective-pom-multimodule-artifact/verify.groovy
b/src/it/projects/effective-pom-multimodule-artifact/verify.groovy
index 39401cd..8ce0082 100644
--- a/src/it/projects/effective-pom-multimodule-artifact/verify.groovy
+++ b/src/it/projects/effective-pom-multimodule-artifact/verify.groovy
@@ -17,14 +17,14 @@
* under the License.
*/
-String content = new File( basedir, "build.log" ).text
-assert content.indexOf( "<projects>" ) == -1
+String content = new File(basedir, "build.log").text
+assert content.indexOf("<projects>") == -1
-def result = new File(basedir, 'result.txt');
+def result = new File(basedir, 'result.txt')
assert result.exists()
def LS = System.lineSeparator()
assert result.text.find('(?s)' +
- ' <groupId>org.apache.maven.plugins</groupId>' + LS +
- ' <artifactId>maven-help-plugin</artifactId>'
+' <groupId>org.apache.maven.plugins</groupId>' + LS +
+' <artifactId>maven-help-plugin</artifactId>'
) != null
\ No newline at end of file
diff --git
a/src/it/projects/effective-pom-multimodule-unlink-parent/verify.groovy
b/src/it/projects/effective-pom-multimodule-unlink-parent/verify.groovy
index 2dbf669..64062bc 100644
--- a/src/it/projects/effective-pom-multimodule-unlink-parent/verify.groovy
+++ b/src/it/projects/effective-pom-multimodule-unlink-parent/verify.groovy
@@ -17,5 +17,5 @@
* under the License.
*/
-String content = new File( basedir, "build.log" ).text
-assert content.indexOf( "<projects>" ) != -1
\ No newline at end of file
+String content = new File(basedir, "build.log").text
+assert content.indexOf("<projects>") != -1
\ No newline at end of file
diff --git a/src/it/projects/effective-pom-multimodule/verify.groovy
b/src/it/projects/effective-pom-multimodule/verify.groovy
index 2dbf669..64062bc 100644
--- a/src/it/projects/effective-pom-multimodule/verify.groovy
+++ b/src/it/projects/effective-pom-multimodule/verify.groovy
@@ -17,5 +17,5 @@
* under the License.
*/
-String content = new File( basedir, "build.log" ).text
-assert content.indexOf( "<projects>" ) != -1
\ No newline at end of file
+String content = new File(basedir, "build.log").text
+assert content.indexOf("<projects>") != -1
\ No newline at end of file
diff --git a/src/it/projects/effective-pom-verbose/verify.groovy
b/src/it/projects/effective-pom-verbose/verify.groovy
index 71c44d5..58afdc3 100644
--- a/src/it/projects/effective-pom-verbose/verify.groovy
+++ b/src/it/projects/effective-pom-verbose/verify.groovy
@@ -17,8 +17,8 @@
* under the License.
*/
-String content = new File( basedir, "build.log" ).text
+String content = new File(basedir, "build.log").text
// comments in the same line
-assert content.contains( "<groupId>org.apache.maven.its.help</groupId> <!--
org.apache.maven.its.help:test:1.0-SNAPSHOT," )
-assert content.contains( "<url>https://maven.apache.org/plugins/test/</url>
<!-- org.apache.maven.plugins:maven-plugins:33, line 37 -->" )
+assert content.contains("<groupId>org.apache.maven.its.help</groupId> <!--
org.apache.maven.its.help:test:1.0-SNAPSHOT,")
+assert content.contains("<url>https://maven.apache.org/plugins/test/</url>
<!-- org.apache.maven.plugins:maven-plugins:33, line 37 -->")
diff --git a/src/it/projects/effective-pom_properties/verify.groovy
b/src/it/projects/effective-pom_properties/verify.groovy
index 6adbd09..709b79e 100644
--- a/src/it/projects/effective-pom_properties/verify.groovy
+++ b/src/it/projects/effective-pom_properties/verify.groovy
@@ -16,25 +16,25 @@
* specific language governing permissions and limitations
* under the License.
*/
-def buildLog = new File(basedir, 'build.log');
+def buildLog = new File(basedir, 'build.log')
assert buildLog.exists()
def LS = System.lineSeparator()
if (mavenVersion.startsWith('4.')) {
// with Maven 4, order of properties is reversed from original pom.xml
assert buildLog.text.find(
- '(?s)' +
- ' <properties>' + LS +
- '
<maven\\.compiler\\.target>1\\.8</maven\\.compiler\\.target>' + LS +
- '
<maven\\.compiler\\.source>1\\.8</maven\\.compiler\\.source>' + LS +
- '.*' +
- ' </properties>') != null
+ '(?s)' +
+ ' <properties>' + LS +
+ ' <maven\\.compiler\\.target>1\\.8</maven\\.compiler\\.target>' + LS +
+ ' <maven\\.compiler\\.source>1\\.8</maven\\.compiler\\.source>' + LS +
+ '.*' +
+ ' </properties>') != null
} else {
assert buildLog.text.find(
- '(?s)' +
- ' <properties>' + LS +
- '
<maven\\.compiler\\.source>1\\.8</maven\\.compiler\\.source>' + LS +
- '
<maven\\.compiler\\.target>1\\.8</maven\\.compiler\\.target>' + LS +
- '.*' +
- ' </properties>') != null
+ '(?s)' +
+ ' <properties>' + LS +
+ ' <maven\\.compiler\\.source>1\\.8</maven\\.compiler\\.source>' + LS +
+ ' <maven\\.compiler\\.target>1\\.8</maven\\.compiler\\.target>' + LS +
+ '.*' +
+ ' </properties>') != null
}
diff --git
a/src/it/projects/effective-settings-with-repository-origins/verify.groovy
b/src/it/projects/effective-settings-with-repository-origins/verify.groovy
index 2271891..1ba59c1 100644
--- a/src/it/projects/effective-settings-with-repository-origins/verify.groovy
+++ b/src/it/projects/effective-settings-with-repository-origins/verify.groovy
@@ -20,8 +20,8 @@ def buildLog = new File(basedir, 'build.log')
assert buildLog.exists()
assert buildLog.text.find(
- '(?s)' +
- '\\s*<repositoryOrigins>.' +
-
'\\s*<repositoryOrigin>https://clone1.maven.apache.org/repository/</repositoryOrigin>.'
+
-
'\\s*<repositoryOrigin>https://clone2.maven.apache.org/repository/</repositoryOrigin>.'
+
- '\\s*</repositoryOrigins>') != null
+'(?s)' +
+'\\s*<repositoryOrigins>.' +
+'\\s*<repositoryOrigin>https://clone1.maven.apache.org/repository/</repositoryOrigin>.'
+
+'\\s*<repositoryOrigin>https://clone2.maven.apache.org/repository/</repositoryOrigin>.'
+
+'\\s*</repositoryOrigins>') != null
diff --git a/src/it/projects/effective-settings_deep-clone/verify.groovy
b/src/it/projects/effective-settings_deep-clone/verify.groovy
index 4e495f8..f22de84 100644
--- a/src/it/projects/effective-settings_deep-clone/verify.groovy
+++ b/src/it/projects/effective-settings_deep-clone/verify.groovy
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-def buildLog = new File(basedir, 'build.log');
+def buildLog = new File(basedir, 'build.log')
assert buildLog.exists()
// for effective-settings call
// maven.version (3.0,3.0.4] are missing the proxies?! > assert = 2
// maven.version (,2.2.1) correct > assert = 3
// assert 3 == buildLog.text.count('***')
-assert (2..4).contains( buildLog.text.count('***') )
+assert (2..4).contains(buildLog.text.count('***'))
// for evaluate calls
assert buildLog.text.contains('proxy-password')
diff --git
a/src/it/projects/evaluate-artifact-with-expression-with-output/verify.groovy
b/src/it/projects/evaluate-artifact-with-expression-with-output/verify.groovy
index 0c856b7..2a51158 100644
---
a/src/it/projects/evaluate-artifact-with-expression-with-output/verify.groovy
+++
b/src/it/projects/evaluate-artifact-with-expression-with-output/verify.groovy
@@ -17,7 +17,7 @@
* under the License.
*/
-def result = new File(basedir, 'result.txt').text;
+def result = new File(basedir, 'result.txt').text
assert result == 'Apache Maven Help Plugin'
-return true;
+return true
diff --git a/src/it/projects/evaluate-model-collections-maven4/verify.groovy
b/src/it/projects/evaluate-model-collections-maven4/verify.groovy
index b7f9909..fa69be8 100644
--- a/src/it/projects/evaluate-model-collections-maven4/verify.groovy
+++ b/src/it/projects/evaluate-model-collections-maven4/verify.groovy
@@ -17,9 +17,13 @@
* under the License.
*/
-assert !new File(basedir, 'build.log').readLines().any {
it.startsWith('[ERROR]') }
+assert !new File(basedir, 'build.log').readLines().any {
+ it.startsWith('[ERROR]')
+}
-def parse = { name -> new groovy.xml.XmlSlurper().parse(new File(basedir,
name)) }
+def parse = { name ->
+ new groovy.xml.XmlSlurper().parse(new File(basedir, name))
+}
def checkResource = { resource ->
assert resource.name() == 'resource'
assert resource.directory.text() == new File(basedir,
'src/main/resources').absolutePath
@@ -67,7 +71,9 @@ assert profiles.profile.properties.'profile.key'.text() ==
'profile value'
it.name() in ['delegate', 'locations', 'importedFrom', 'pluginMap',
'reportSetMap', 'managementKey']
}.isEmpty()
// no implementation classes of the immutable collections and no XStream
back references
- assert nodes.findAll { [email protected]() > 0 || [email protected]() > 0
}.isEmpty()
+ assert nodes.findAll {
+ [email protected]() > 0 || [email protected]() > 0
+ }.isEmpty()
}
return true
diff --git a/src/it/projects/evaluate-null-object-with-output/verify.groovy
b/src/it/projects/evaluate-null-object-with-output/verify.groovy
index b8feaea..fba566e 100644
--- a/src/it/projects/evaluate-null-object-with-output/verify.groovy
+++ b/src/it/projects/evaluate-null-object-with-output/verify.groovy
@@ -17,7 +17,7 @@
* under the License.
*/
-def result = new File(basedir, 'result.txt').text;
+def result = new File(basedir, 'result.txt').text
assert result == 'null object or invalid expression'
-return true;
+return true
diff --git a/src/it/projects/evaluate-null-object/verify.groovy
b/src/it/projects/evaluate-null-object/verify.groovy
index a26b256..8852942 100644
--- a/src/it/projects/evaluate-null-object/verify.groovy
+++ b/src/it/projects/evaluate-null-object/verify.groovy
@@ -17,7 +17,7 @@
* under the License.
*/
-def result = new File(basedir, 'build.log').text;
-assert result.contains( 'null object or invalid expression' )
+def result = new File(basedir, 'build.log').text
+assert result.contains('null object or invalid expression')
-return true;
+return true
diff --git a/src/it/projects/evaluate-settings-servers/verify.groovy
b/src/it/projects/evaluate-settings-servers/verify.groovy
index a76a4dc..9b62138 100644
--- a/src/it/projects/evaluate-settings-servers/verify.groovy
+++ b/src/it/projects/evaluate-settings-servers/verify.groovy
@@ -25,5 +25,9 @@ assert result.password.text() == 'server-password'
assert result.passphrase.text() == 'server-passphrase'
assert result.depthFirst().findAll { it.name() == 'delegate' }.isEmpty()
-assert result.depthFirst().findAll { it.name() in ['locations',
'importedFrom'] }.isEmpty()
-assert result.depthFirst().findAll { [email protected]() > 0 ||
[email protected]() > 0 }.isEmpty()
+assert result.depthFirst().findAll {
+ it.name() in ['locations', 'importedFrom']
+}.isEmpty()
+assert result.depthFirst().findAll {
+ [email protected]() > 0 || [email protected]() > 0
+}.isEmpty()
diff --git a/src/it/projects/evaluate-with-expression-with-output/verify.groovy
b/src/it/projects/evaluate-with-expression-with-output/verify.groovy
index a688ded..7f31461 100644
--- a/src/it/projects/evaluate-with-expression-with-output/verify.groovy
+++ b/src/it/projects/evaluate-with-expression-with-output/verify.groovy
@@ -17,10 +17,10 @@
* under the License.
*/
-def result = new File(basedir, 'result.txt').text;
+def result = new File(basedir, 'result.txt').text
assert result == 'Maven Foo Bar'
-def log = new File(basedir, 'build.log').text;
+def log = new File(basedir, 'build.log').text
assert log.contains('[INFO] Result of evaluation written to')
-return true;
+return true
diff --git a/src/it/projects/evaluate/verify.groovy
b/src/it/projects/evaluate/verify.groovy
index daf3a56..3a6754e 100644
--- a/src/it/projects/evaluate/verify.groovy
+++ b/src/it/projects/evaluate/verify.groovy
@@ -17,7 +17,7 @@
* under the License.
*/
-def result = new File(basedir, 'build.log').text;
-assert result.contains( 'The description.' )
+def result = new File(basedir, 'build.log').text
+assert result.contains('The description.')
-return true;
+return true