You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2022/05/13 21:15:32 UTC

[maven-jar-plugin] branch master updated: [MJAR-288] Upgrade Parent to 36

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 3fe2100  [MJAR-288] Upgrade Parent to 36
3fe2100 is described below

commit 3fe21007d4e7a0efb1fed4d98eb726bdd527077c
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Thu May 12 22:55:43 2022 +0200

    [MJAR-288] Upgrade Parent to 36
    
    - fix failed bsh script due to reflection on internal jdk casses - jdk 11
---
 pom.xml                                                | 18 +++++++++++++++---
 src/it/MJAR-30-excludes/{verify.bsh => verify.groovy}  |  4 ++--
 .../MJAR-30-fullcontent/{verify.bsh => verify.groovy}  |  4 ++--
 src/it/MJAR-30-include/{verify.bsh => verify.groovy}   |  4 ++--
 src/it/MJAR-60/{verify.bsh => verify.groovy}           |  0
 src/it/MJAR-80-exclude/{verify.bsh => verify.groovy}   |  4 ++--
 .../MJAR-80-fullcontent/{verify.bsh => verify.groovy}  |  4 ++--
 src/it/MJAR-80-include/{verify.bsh => verify.groovy}   |  4 ++--
 src/it/manifest-content/{verify.bsh => verify.grovy}   |  0
 src/it/mjar-71-01/{verify.bsh => verify.groovy}        |  0
 src/it/mjar-71-02/{verify.bsh => verify.groovy}        |  0
 src/it/project-004/{verify.bsh => verify.groovy}       |  8 ++++----
 12 files changed, 31 insertions(+), 19 deletions(-)

diff --git a/pom.xml b/pom.xml
index b3f6caa..9e4c799 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,8 +25,8 @@
   <parent>
     <artifactId>maven-plugins</artifactId>
     <groupId>org.apache.maven.plugins</groupId>
-    <version>34</version>
-    <relativePath>../../pom/maven/maven-plugins/pom.xml</relativePath>
+    <version>36</version>
+    <relativePath/>
   </parent>
 
   <artifactId>maven-jar-plugin</artifactId>
@@ -65,7 +65,7 @@
   </issueManagement>
   <ciManagement>
     <system>Jenkins</system>
-    <url>https://ci-builds.apache.org/job/Maven/job/maven-box/job/maven-jar-plugin/</url>
+    <url>https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven-jar-plugin/</url>
   </ciManagement>
   <distributionManagement>
     <site>
@@ -78,6 +78,9 @@
     <mavenFileManagementVersion>3.0.0</mavenFileManagementVersion>
     <mavenArchiverVersion>3.5.2</mavenArchiverVersion>
     <mavenVersion>3.1.0</mavenVersion>
+    <!-- TODO remove with Maven APi upgrade -->
+    <!-- the same version as in Maven 3.1.0 -->
+    <sisuVersion>0.0.0.M2a</sisuVersion>
     <javaVersion>7</javaVersion>
     <project.build.outputTimestamp>2022-01-08T21:19:21Z</project.build.outputTimestamp>
   </properties>
@@ -87,16 +90,25 @@
       <groupId>org.apache.maven</groupId>
       <artifactId>maven-plugin-api</artifactId>
       <version>${mavenVersion}</version>
+      <scope>provided</scope>
     </dependency>
     <dependency>
       <groupId>org.apache.maven</groupId>
       <artifactId>maven-core</artifactId>
       <version>${mavenVersion}</version>
+      <scope>provided</scope>
     </dependency>
     <dependency>
       <groupId>org.apache.maven</groupId>
       <artifactId>maven-artifact</artifactId>
       <version>${mavenVersion}</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-model</artifactId>
+      <version>${mavenVersion}</version>
+      <scope>provided</scope>
     </dependency>
     <dependency>
       <groupId>org.apache.maven.shared</groupId>
diff --git a/src/it/MJAR-30-excludes/verify.bsh b/src/it/MJAR-30-excludes/verify.groovy
similarity index 94%
rename from src/it/MJAR-30-excludes/verify.bsh
rename to src/it/MJAR-30-excludes/verify.groovy
index b2a4607..8470d21 100644
--- a/src/it/MJAR-30-excludes/verify.bsh
+++ b/src/it/MJAR-30-excludes/verify.groovy
@@ -41,9 +41,9 @@ try
         return false;
     }
 
-    String[] artifactNames = new String[] { "default-configuration.properties", "META-INF/MANIFEST.MF",
+    String[] artifactNames = [ "default-configuration.properties", "META-INF/MANIFEST.MF",
             "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-30-03/pom.properties",
-            "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-30-03/pom.xml" };
+            "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-30-03/pom.xml" ];
 
     Set contents = new HashSet();
 
diff --git a/src/it/MJAR-30-fullcontent/verify.bsh b/src/it/MJAR-30-fullcontent/verify.groovy
similarity index 95%
rename from src/it/MJAR-30-fullcontent/verify.bsh
rename to src/it/MJAR-30-fullcontent/verify.groovy
index b8d3016..a64ef94 100644
--- a/src/it/MJAR-30-fullcontent/verify.bsh
+++ b/src/it/MJAR-30-fullcontent/verify.groovy
@@ -41,10 +41,10 @@ try
         return false;
     }
 
-    String[] artifactNames = new String[] { "default-configuration.properties",
+    String[] artifactNames = [ "default-configuration.properties",
             "foo/project001/App.class", "META-INF/MANIFEST.MF",
             "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-30-01/pom.properties",
-            "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-30-01/pom.xml" };
+            "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-30-01/pom.xml" ];
 
     Set contents = new HashSet();
 
diff --git a/src/it/MJAR-30-include/verify.bsh b/src/it/MJAR-30-include/verify.groovy
similarity index 94%
rename from src/it/MJAR-30-include/verify.bsh
rename to src/it/MJAR-30-include/verify.groovy
index ae3a05e..258b205 100644
--- a/src/it/MJAR-30-include/verify.bsh
+++ b/src/it/MJAR-30-include/verify.groovy
@@ -41,9 +41,9 @@ try
         return false;
     }
 
-    String[] artifactNames = new String[] { "service/TestInterface.class", "META-INF/MANIFEST.MF",
+    String[] artifactNames = [ "service/TestInterface.class", "META-INF/MANIFEST.MF",
             "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-30-02/pom.properties",
-            "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-30-02/pom.xml" };
+            "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-30-02/pom.xml" ];
 
     Set contents = new HashSet();
 
diff --git a/src/it/MJAR-60/verify.bsh b/src/it/MJAR-60/verify.groovy
similarity index 100%
rename from src/it/MJAR-60/verify.bsh
rename to src/it/MJAR-60/verify.groovy
diff --git a/src/it/MJAR-80-exclude/verify.bsh b/src/it/MJAR-80-exclude/verify.groovy
similarity index 96%
rename from src/it/MJAR-80-exclude/verify.bsh
rename to src/it/MJAR-80-exclude/verify.groovy
index 824872e..063dd30 100644
--- a/src/it/MJAR-80-exclude/verify.bsh
+++ b/src/it/MJAR-80-exclude/verify.groovy
@@ -48,10 +48,10 @@ try
         return false;
     }
 
-    String[] artifactNames = new String[] { "test-default-configuration.properties",
+    String[] artifactNames = [ "test-default-configuration.properties",
             "foo/project003/AppTest.class", "foo/project003/AppIntegrationTest.class", "META-INF/MANIFEST.MF",
             "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-80-03/pom.properties",
-            "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-80-03/pom.xml" };
+            "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-80-03/pom.xml" ];
 
     Set contents = new HashSet();
 
diff --git a/src/it/MJAR-80-fullcontent/verify.bsh b/src/it/MJAR-80-fullcontent/verify.groovy
similarity index 95%
rename from src/it/MJAR-80-fullcontent/verify.bsh
rename to src/it/MJAR-80-fullcontent/verify.groovy
index d8784e2..6cafc8d 100644
--- a/src/it/MJAR-80-fullcontent/verify.bsh
+++ b/src/it/MJAR-80-fullcontent/verify.groovy
@@ -48,10 +48,10 @@ try
         return false;
     }
 
-    String[] artifactNames =  new String[] { "test-default-configuration.properties",
+    String[] artifactNames = [ "test-default-configuration.properties",
             "foo/project003/AppTest.class", "foo/project003/AppIntegrationTest.class", "META-INF/MANIFEST.MF",
             "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-80-01/pom.properties",
-            "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-80-01/pom.xml" };
+            "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-80-01/pom.xml" ];
 
     Set contents = new HashSet();
 
diff --git a/src/it/MJAR-80-include/verify.bsh b/src/it/MJAR-80-include/verify.groovy
similarity index 95%
rename from src/it/MJAR-80-include/verify.bsh
rename to src/it/MJAR-80-include/verify.groovy
index 04d7121..ff62d49 100644
--- a/src/it/MJAR-80-include/verify.bsh
+++ b/src/it/MJAR-80-include/verify.groovy
@@ -48,10 +48,10 @@ try
         return false;
     }
 
-    String[] artifactNames =  new String[] { "foo/project003/AppIntegrationTest.class",
+    String[] artifactNames =  [ "foo/project003/AppIntegrationTest.class",
             "META-INF/MANIFEST.MF",
             "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-80-02/pom.properties",
-            "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-80-02/pom.xml" };
+            "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-mjar-80-02/pom.xml" ];
 
     Set contents = new HashSet();
 
diff --git a/src/it/manifest-content/verify.bsh b/src/it/manifest-content/verify.grovy
similarity index 100%
rename from src/it/manifest-content/verify.bsh
rename to src/it/manifest-content/verify.grovy
diff --git a/src/it/mjar-71-01/verify.bsh b/src/it/mjar-71-01/verify.groovy
similarity index 100%
rename from src/it/mjar-71-01/verify.bsh
rename to src/it/mjar-71-01/verify.groovy
diff --git a/src/it/mjar-71-02/verify.bsh b/src/it/mjar-71-02/verify.groovy
similarity index 100%
rename from src/it/mjar-71-02/verify.bsh
rename to src/it/mjar-71-02/verify.groovy
diff --git a/src/it/project-004/verify.bsh b/src/it/project-004/verify.groovy
similarity index 94%
rename from src/it/project-004/verify.bsh
rename to src/it/project-004/verify.groovy
index ede0320..e5f5506 100644
--- a/src/it/project-004/verify.bsh
+++ b/src/it/project-004/verify.groovy
@@ -41,10 +41,10 @@ try
         return false;
     }
 
-    String[] artifactNames = new String[] { "service/TestInterface.class",
+    String[] artifactNames = [ "service/TestInterface.class",
             "service/impl/TestImplementation.class", "TestCompile1.class", "notIncluded.xml", "META-INF/MANIFEST.MF",
             "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-project-004/pom.properties",
-            "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-project-004/pom.xml" };
+            "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-project-004/pom.xml"  ];
 
     Set contents = new HashSet();
 
@@ -84,10 +84,10 @@ try
         return false;
     }
 
-    artifactNames =  new String[] { "service/TestInterface.class",
+    artifactNames =  [ "service/TestInterface.class",
             "META-INF/MANIFEST.MF",
             "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-project-004/pom.properties",
-            "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-project-004/pom.xml" };
+            "META-INF/maven/org.apache.maven.plugins/maven-jar-plugin-test-project-004/pom.xml" ];
 
     contents = new HashSet();