maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From micha...@apache.org
Subject svn commit: r1747797 - /maven/release/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PerformReleaseMojo.java
Date Fri, 10 Jun 2016 20:11:57 GMT
Author: michaelo
Date: Fri Jun 10 20:11:57 2016
New Revision: 1747797

URL: http://svn.apache.org/viewvc?rev=1747797&view=rev
Log:
[MRELEASE-356] Deprecate the automated release profile

Submitted-by: Stefan Ferstl

Modified:
    maven/release/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PerformReleaseMojo.java

Modified: maven/release/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PerformReleaseMojo.java
URL: http://svn.apache.org/viewvc/maven/release/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PerformReleaseMojo.java?rev=1747797&r1=1747796&r2=1747797&view=diff
==============================================================================
--- maven/release/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PerformReleaseMojo.java
(original)
+++ maven/release/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PerformReleaseMojo.java
Fri Jun 10 20:11:57 2016
@@ -87,7 +87,7 @@ public class PerformReleaseMojo
      */
     @Parameter( defaultValue = "false", property = "localCheckout" )
     private boolean localCheckout;
-    
+
     /**
      * The SCM username to use.
      */
@@ -99,11 +99,13 @@ public class PerformReleaseMojo
      */
     @Parameter( property = "password" )
     private String password;
-    
+
     /**
      * Whether to use the release profile that adds sources and javadocs to the released
artifact, if appropriate.
      * If set to true, the release plugin sets the property "performRelease" to true, which
activates the profile
      * "release-profile", which is inherited from the super pom.
+     *
+     * @deprecated The release profile will be removed from future versions of the super
POM
      */
     @Parameter( defaultValue = "true", property = "useReleaseProfile" )
     private boolean useReleaseProfile;
@@ -116,7 +118,7 @@ public class PerformReleaseMojo
     private boolean dryRun;
 
     /**
-     * Add a new or overwrite the default implementation per provider. 
+     * Add a new or overwrite the default implementation per provider.
      * The key is the scm prefix and the value is the role hint of the
      * {@link org.apache.maven.scm.provider.ScmProvider}.
      *
@@ -139,7 +141,7 @@ public class PerformReleaseMojo
     {
         return releaseProfiles;
     }
-    
+
     /**
      * {@inheritDoc}
      */
@@ -155,7 +157,7 @@ public class PerformReleaseMojo
                 scmManager.setScmProviderImplementation( providerEntry.getKey(), providerEntry.getValue()
);
             }
         }
-        
+
         // goals may be splitted into multiple line in configuration.
         // Let's build a single line command
         if ( goals != null )
@@ -172,17 +174,17 @@ public class PerformReleaseMojo
             {
                 releaseDescriptor.setScmSourceUrl( connectionUrl );
             }
-            
+
             if ( username != null )
             {
                 releaseDescriptor.setScmUsername( username );
             }
-            
+
             if ( password != null )
             {
                 releaseDescriptor.setScmPassword( password );
             }
-            
+
             releaseDescriptor.setLocalCheckout( localCheckout );
 
             releaseDescriptor.setCheckoutDirectory( workingDirectory.getAbsolutePath() );
@@ -190,7 +192,7 @@ public class PerformReleaseMojo
 
             createGoals();
             releaseDescriptor.setPerformGoals( goals );
-            
+
             ReleasePerformRequest performRequest  = new ReleasePerformRequest();
             performRequest.setReleaseDescriptor( releaseDescriptor );
             performRequest.setReleaseEnvironment( getReleaseEnvironment() );



Mime
View raw message