File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
buildSrc/src/main/java/org/springframework/gradle/maven Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 2323import io .github .gradlenexus .publishplugin .NexusPublishPlugin ;
2424import org .gradle .api .Plugin ;
2525import org .gradle .api .Project ;
26- import org .gradle .api .Task ;
27-
28- import org .springframework .gradle .ProjectUtils ;
2926
3027/**
3128 * @author Steve Riesenberg
@@ -47,11 +44,7 @@ public void apply(Project project) {
4744 nexusPublishing .getConnectTimeout ().set (Duration .ofMinutes (3 ));
4845 nexusPublishing .getClientTimeout ().set (Duration .ofMinutes (3 ));
4946
50- // Ensure release build automatically closes and releases staging repository
51- Task finalizeDeployArtifacts = project .task ("finalizeDeployArtifacts" );
52- if (ProjectUtils .isRelease (project ) && project .hasProperty ("ossrhUsername" )) {
53- Task closeAndReleaseOssrhStagingRepository = project .getTasks ().findByName ("closeAndReleaseOssrhStagingRepository" );
54- finalizeDeployArtifacts .dependsOn (closeAndReleaseOssrhStagingRepository );
55- }
47+ // Create stub task for consistency with OSS repositories
48+ project .task ("finalizeDeployArtifacts" );
5649 }
5750}
You can’t perform that action at this time.
0 commit comments