Skip to content

Commit

Permalink
Disable closeAndReleaseOssrhStagingRepository task
Browse files Browse the repository at this point in the history
  • Loading branch information
sjohnr committed Dec 13, 2023
1 parent 96f0854 commit b75e7cb
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
import io.github.gradlenexus.publishplugin.NexusPublishPlugin;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.Task;

import org.springframework.gradle.ProjectUtils;

/**
* @author Steve Riesenberg
Expand All @@ -47,11 +44,7 @@ public void apply(Project project) {
nexusPublishing.getConnectTimeout().set(Duration.ofMinutes(3));
nexusPublishing.getClientTimeout().set(Duration.ofMinutes(3));

// Ensure release build automatically closes and releases staging repository
Task finalizeDeployArtifacts = project.task("finalizeDeployArtifacts");
if (ProjectUtils.isRelease(project) && project.hasProperty("ossrhUsername")) {
Task closeAndReleaseOssrhStagingRepository = project.getTasks().findByName("closeAndReleaseOssrhStagingRepository");
finalizeDeployArtifacts.dependsOn(closeAndReleaseOssrhStagingRepository);
}
// Create stub task for consistency with OSS repositories
project.task("finalizeDeployArtifacts");
}
}

0 comments on commit b75e7cb

Please sign in to comment.