You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2022/01/01 22:35:40 UTC

[maven-surefire] branch surefire-shared-utils created (now c26e696)

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

tibordigana pushed a change to branch surefire-shared-utils
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git.


      at c26e696  proposed method isSecurityManagerSupported()

This branch includes the following new commits:

     new 9f8649d  current version of surefire-shared-utils without duplicating m-shade-p in every POM/module
     new 2777153  Upgrade commons-lang3 to Version 3.12.0
     new c26e696  proposed method isSecurityManagerSupported()

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[maven-surefire] 03/03: proposed method isSecurityManagerSupported()

Posted by ti...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch surefire-shared-utils
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit c26e696db10d3b9446cf0c396204cbd22b04a7d2
Author: Tibor Digaňa <ti...@apache.org>
AuthorDate: Sat Jan 1 23:35:10 2022 +0100

    proposed method isSecurityManagerSupported()
---
 .../maven/surefire/api/util/internal/ObjectUtils.java     | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/internal/ObjectUtils.java b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/internal/ObjectUtils.java
index b316be2..df85f18 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/api/util/internal/ObjectUtils.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/api/util/internal/ObjectUtils.java
@@ -22,8 +22,11 @@ package org.apache.maven.surefire.api.util.internal;
 import java.lang.management.ManagementFactory;
 import java.util.Map;
 
+import static org.apache.maven.surefire.shared.lang3.JavaVersion.JAVA_16;
+import static org.apache.maven.surefire.shared.lang3.JavaVersion.JAVA_RECENT;
+
 /**
- * Similar to Java 7 java.util.Objects.
+ * Similar to Java 7 java.util.Objects, and another utility methods.
  *
  * @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
  * @since 2.20
@@ -44,4 +47,14 @@ public final class ObjectUtils
     {
         return ManagementFactory.getRuntimeMXBean().getSystemProperties();
     }
+
+    /**
+     * The {@link SecurityManager} is deprecated since Java 17.
+     *
+     * @return {@code true} if Java Specification Version is less than or equal to 16; {@link false} otherwise.
+     */
+    public static boolean isSecurityManagerSupported()
+    {
+        return JAVA_RECENT.atMost( JAVA_16 );
+    }
 }

[maven-surefire] 02/03: Upgrade commons-lang3 to Version 3.12.0

Posted by ti...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch surefire-shared-utils
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit 277715323e0788e08af051119f68c39257ba0ab0
Author: Tibor Digaňa <ti...@apache.org>
AuthorDate: Sat Jan 1 23:23:23 2022 +0100

    Upgrade commons-lang3 to Version 3.12.0
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 63cc149..1c7702a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -90,7 +90,7 @@
     <javaVersion>8</javaVersion>
     <mavenVersion>3.2.5</mavenVersion>
     <!-- <shadedVersion>3.0.0-M2</shadedVersion> commented out due to https://issues.apache.org/jira/browse/MRELEASE-799 -->
-    <commonsLang3Version>3.8.1</commonsLang3Version>
+    <commonsLang3Version>3.12.0</commonsLang3Version>
     <commonsCompress>1.20</commonsCompress>
     <commonsIoVersion>2.6</commonsIoVersion>
     <doxiaVersion>1.11.1</doxiaVersion>

[maven-surefire] 01/03: current version of surefire-shared-utils without duplicating m-shade-p in every POM/module

Posted by ti...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch surefire-shared-utils
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit 9f8649d40fe683ff83cada4900b8ff64b7192864
Author: Tibor Digaňa <ti...@apache.org>
AuthorDate: Sat Jan 1 23:01:56 2022 +0100

    current version of surefire-shared-utils without duplicating m-shade-p in every POM/module
---
 maven-surefire-common/pom.xml           |  2 +-
 pom.xml                                 |  2 +-
 surefire-api/pom.xml                    |  2 +-
 surefire-extensions-api/pom.xml         |  2 +-
 surefire-providers/common-java5/pom.xml |  2 +-
 surefire-report-parser/pom.xml          |  2 +-
 surefire-shared-utils/pom.xml           | 34 ++++++++++++++++++++++++++++++++-
 7 files changed, 39 insertions(+), 7 deletions(-)

diff --git a/maven-surefire-common/pom.xml b/maven-surefire-common/pom.xml
index 805b247..7e3c65c 100644
--- a/maven-surefire-common/pom.xml
+++ b/maven-surefire-common/pom.xml
@@ -74,7 +74,7 @@
         <dependency>
             <groupId>org.apache.maven.surefire</groupId>
             <artifactId>surefire-shared-utils</artifactId>
-            <version>3.0.0-M4</version>
+            <version>${project.version}</version>
         </dependency>
         <dependency>
             <groupId>com.google.code.findbugs</groupId>
diff --git a/pom.xml b/pom.xml
index 9440300..63cc149 100644
--- a/pom.xml
+++ b/pom.xml
@@ -48,6 +48,7 @@
   </contributors>
 
   <modules>
+    <module>surefire-shared-utils</module>
     <module>surefire-logger-api</module>
     <module>surefire-api</module>
     <module>surefire-extensions-api</module>
@@ -62,7 +63,6 @@
     <module>maven-failsafe-plugin</module>
     <module>maven-surefire-report-plugin</module>
     <module>surefire-its</module>
-    <module>surefire-shared-utils</module>
   </modules>
 
   <scm>
diff --git a/surefire-api/pom.xml b/surefire-api/pom.xml
index 158c88a..d82b57e 100644
--- a/surefire-api/pom.xml
+++ b/surefire-api/pom.xml
@@ -40,7 +40,7 @@
     <dependency>
       <groupId>org.apache.maven.surefire</groupId>
       <artifactId>surefire-shared-utils</artifactId>
-      <version>3.0.0-M4</version>
+      <version>${project.version}</version>
     </dependency>
     <dependency>
       <groupId>com.google.code.findbugs</groupId>
diff --git a/surefire-extensions-api/pom.xml b/surefire-extensions-api/pom.xml
index ee08611..5e56286 100644
--- a/surefire-extensions-api/pom.xml
+++ b/surefire-extensions-api/pom.xml
@@ -45,7 +45,7 @@
         <dependency>
             <groupId>org.apache.maven.surefire</groupId>
             <artifactId>surefire-shared-utils</artifactId>
-            <version>3.0.0-M4</version>
+            <version>${project.version}</version>
         </dependency>
         <dependency>
             <groupId>org.mockito</groupId>
diff --git a/surefire-providers/common-java5/pom.xml b/surefire-providers/common-java5/pom.xml
index f76659e..acf37c5 100644
--- a/surefire-providers/common-java5/pom.xml
+++ b/surefire-providers/common-java5/pom.xml
@@ -35,7 +35,7 @@
     <dependency>
       <groupId>org.apache.maven.surefire</groupId>
       <artifactId>surefire-shared-utils</artifactId>
-      <version>3.0.0-M4</version>
+      <version>${project.version}</version>
     </dependency>
   </dependencies>
 
diff --git a/surefire-report-parser/pom.xml b/surefire-report-parser/pom.xml
index b452bd7..f31d9ec 100644
--- a/surefire-report-parser/pom.xml
+++ b/surefire-report-parser/pom.xml
@@ -41,7 +41,7 @@
     <dependency>
       <groupId>org.apache.maven.surefire</groupId>
       <artifactId>surefire-shared-utils</artifactId>
-      <version>3.0.0-M4</version>
+      <version>${project.version}</version>
     </dependency>
     <dependency>
       <groupId>org.apache.maven.reporting</groupId>
diff --git a/surefire-shared-utils/pom.xml b/surefire-shared-utils/pom.xml
index c845f5c..06486d6 100644
--- a/surefire-shared-utils/pom.xml
+++ b/surefire-shared-utils/pom.xml
@@ -27,7 +27,7 @@
         <version>3.0.0-M6-SNAPSHOT</version>
     </parent>
 
-    <artifactId>surefire-shared-utils</artifactId>
+    <artifactId>surefire-shared-utils-project</artifactId>
     <name>Surefire Shared Utils</name>
     <description>Relocated Java packages of maven-shared-utils in Surefire</description>
 
@@ -98,6 +98,38 @@
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <artifactId>maven-install-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>install-jar</id>
+                        <phase>install</phase>
+                        <goals>
+                            <goal>install-file</goal>
+                        </goals>
+                        <configuration>
+                            <file>target/${project.build.finalName}.jar</file>
+                            <artifactId>surefire-shared-utils</artifactId>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <artifactId>maven-deploy-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>deploy-jar</id>
+                        <phase>deploy</phase>
+                        <goals>
+                            <goal>deploy-file</goal>
+                        </goals>
+                        <configuration>
+                            <file>target/${project.build.finalName}.jar</file>
+                            <artifactId>surefire-shared-utils</artifactId>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>