File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
maven-release-manager/src/main/mdo
maven-release-plugin/src/main/java/org/apache/maven/plugins/release Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 941
941
{
942
942
return false;
943
943
}
944
+ if ( !java.util.Objects.equals( scmShallowClone, that.isScmShallowClone() ) )
945
+ {
946
+ return false;
947
+ }
944
948
if ( !java.util.Objects.equals( scmReleaseCommitComment, that.getScmReleaseCommitComment() ) )
945
949
{
946
950
return false;
1087
1091
result = 29 * result + java.util.Objects.hashCode( pomFileName );
1088
1092
result = 29 * result + java.util.Objects.hashCode( checkModificationExcludes );
1089
1093
result = 29 * result + java.util.Objects.hashCode( scmDevelopmentCommitComment );
1094
+ result = 29 * result + java.util.Objects.hashCode( scmShallowClone );
1090
1095
result = 29 * result + java.util.Objects.hashCode( scmReleaseCommitComment );
1091
1096
result = 29 * result + java.util.Objects.hashCode( scmBranchCommitComment );
1092
1097
result = 29 * result + java.util.Objects.hashCode( scmRollbackCommitComment );
Original file line number Diff line number Diff line change @@ -100,6 +100,12 @@ public class PerformReleaseMojo
100
100
@ Parameter ( property = "password" )
101
101
private String password ;
102
102
103
+ /**
104
+ * When cloning a repository if it should be a shallow clone or a full clone.
105
+ */
106
+ @ Parameter ( defaultValue = "true" , property = "scmShallowClone" )
107
+ private boolean scmShallowClone = true ;
108
+
103
109
/**
104
110
* Whether to use the default release profile (Maven 2 and 3) that adds sources and javadocs to the released
105
111
* artifact, if appropriate. If set to true, the release plugin sets the property "<code>performRelease</code>" to
@@ -183,6 +189,8 @@ public void execute()
183
189
releaseDescriptor .setScmPassword ( password );
184
190
}
185
191
192
+ releaseDescriptor .setScmShallowClone ( scmShallowClone );
193
+
186
194
releaseDescriptor .setLocalCheckout ( localCheckout );
187
195
188
196
releaseDescriptor .setCheckoutDirectory ( workingDirectory .getAbsolutePath () );
You can’t perform that action at this time.
0 commit comments