You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/09/20 10:53:48 UTC
(maven-javadoc-plugin) 02/02: Port the IT scripts from BeanShell to Groovy
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-javadoc-plugin.git
commit 5405f94b8a02d39989f8910d132aaf3647936599
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Sun Sep 20 12:34:28 2026 +0200
Port the IT scripts from BeanShell to Groovy
BeanShell is being retired across Maven (apache/maven#13207); the scripts keep the same checks.
---
src/it/projects/MJAVADOC-384/verify.groovy | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/it/projects/MJAVADOC-384/verify.groovy b/src/it/projects/MJAVADOC-384/verify.groovy
index b402f933..8944e8c4 100644
--- a/src/it/projects/MJAVADOC-384/verify.groovy
+++ b/src/it/projects/MJAVADOC-384/verify.groovy
@@ -21,11 +21,11 @@
import java.io.*;
import org.codehaus.plexus.util.*;
-File[] nonExistingJavadocFiles = new File[] {
+File[] nonExistingJavadocFiles = [
new File( basedir, "target/reports/apidocs/com/foo/bar/impl/NotApi.html" ),
new File( basedir, "target/reports/apidocs/com/foo/bar/internal/NotApi.html" ),
- new File( basedir, "target/reports/apidocs/com/foo/bar/internal/other/NotApi.html" ),
-};
+ new File( basedir, "target/reports/apidocs/com/foo/bar/internal/other/NotApi.html" )
+] as File[];
for ( File javadocFile : nonExistingJavadocFiles )
{
@@ -36,10 +36,10 @@ for ( File javadocFile : nonExistingJavadocFiles )
}
}
-File[] existingJavadocFiles = new File[] {
+File[] existingJavadocFiles = [
new File( basedir, "target/reports/apidocs/com/foo/bar/Api.html" ),
- new File( basedir, "target/reports/apidocs/com/foo/bar/internal/Api.html" ),
-};
+ new File( basedir, "target/reports/apidocs/com/foo/bar/internal/Api.html" )
+] as File[];
for ( File javadocFile : existingJavadocFiles )
{