Skip to content

Commit b75e7cb

Browse files
committed
Disable closeAndReleaseOssrhStagingRepository task
1 parent 96f0854 commit b75e7cb

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

buildSrc/src/main/java/org/springframework/gradle/maven/SpringNexusPlugin.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
import io.github.gradlenexus.publishplugin.NexusPublishPlugin;
2424
import org.gradle.api.Plugin;
2525
import 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
}

0 commit comments

Comments
 (0)