Skip to content

Commit

Permalink
Fixed improper merge with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
theit committed Jul 16, 2018
1 parent 5797a6a commit 1962097
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,5 +415,17 @@ public interface ReleaseDescriptor

void setScmSourceUrl( String scmUrl );

/**
* Get whether unresolved snapshot dependencies should automatically be resolved.
*
* @return boolean
*/
boolean isAutoResolveSnapshotDependencies();

/**
* Returns the default answer to be used when unresolved snapshot dependencies should automatically be resolved.
*
* @return int
*/
int getAutoResolveSnapshotDependenciesMode();
}
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,6 @@ public void rollback( ReleaseRollbackRequest rollbackRequest )

goalStart( rollbackRequest.getReleaseManagerListener(), "rollback", rollbackPhases );

Strategy releaseStrategy = getStrategy( releaseDescriptor.getReleaseStrategyId() );

List<String> rollbackPhases = getGoalPhases( releaseStrategy, "rollback" );

goalStart( rollbackRequest.getReleaseManagerListener(), "rollback", rollbackPhases );

for ( String name : rollbackPhases )
{
ReleasePhase phase = releasePhases.get( name );
Expand Down Expand Up @@ -301,12 +295,6 @@ private void perform( ReleasePerformRequest performRequest, ReleaseResult result

goalStart( performRequest.getReleaseManagerListener(), "perform", performPhases );

Strategy releaseStrategy = getStrategy( releaseDescriptor.getReleaseStrategyId() );

List<String> performPhases = getGoalPhases( releaseStrategy, "perform" );

goalStart( performRequest.getReleaseManagerListener(), "perform", performPhases );

for ( String name : performPhases )
{
ReleasePhase phase = releasePhases.get( name );
Expand Down Expand Up @@ -457,12 +445,6 @@ public ReleaseDescriptorBuilder addReleaseVersion( String key,

goalStart( updateVersionsRequest.getReleaseManagerListener(), "updateVersions", updateVersionsPhases );

Strategy releaseStrategy = getStrategy( releaseDescriptor.getReleaseStrategyId() );

List<String> updateVersionsPhases = getGoalPhases( releaseStrategy, "updateVersions" );

goalStart( updateVersionsRequest.getReleaseManagerListener(), "updateVersions", updateVersionsPhases );

for ( String name : updateVersionsPhases )
{
ReleasePhase phase = releasePhases.get( name );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,18 @@ public ReleaseDescriptorBuilder addDependencyDevelopmentVersion( String dependen
return this;
}

public ReleaseDescriptorBuilder setAutoResolveSnapshotDependencies( boolean autoResolveSnapshotDependencies )
{
releaseDescriptor.setAutoResolveSnapshotDependencies( autoResolveSnapshotDependencies );
return this;
}

public ReleaseDescriptorBuilder setAutoResolveSnapshotDependenciesMode( int autoResolveSnapshotDependenciesMode )
{
releaseDescriptor.setAutoResolveSnapshotDependenciesMode( autoResolveSnapshotDependenciesMode );
return this;
}

BuilderReleaseDescriptor build()
{
return releaseDescriptor;
Expand Down

0 comments on commit 1962097

Please sign in to comment.