File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
buildSrc/src/main/java/org/springframework/pulsar/gradle Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ jobs:
119
119
OSSRH_TOKEN_USERNAME : ${{ secrets.OSSRH_S01_TOKEN_USERNAME }}
120
120
OSSRH_TOKEN_PASSWORD : ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }}
121
121
run : |
122
- ./gradlew publishArtifacts \
122
+ ./gradlew publishArtifacts finalizeDeployArtifacts \
123
123
--stacktrace \
124
124
-PossrhUsername="$OSSRH_TOKEN_USERNAME" -PossrhPassword="$OSSRH_TOKEN_PASSWORD" \
125
125
-PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD"
Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ public void apply(final Project project) {
40
40
pluginManager .apply (ArtifactoryPlugin .class );
41
41
pluginManager .apply (SonarQubeConventionsPlugin .class );
42
42
project .getRepositories ().mavenCentral ();
43
+
44
+ Task finalizeDeployArtifacts = project .task ("finalizeDeployArtifacts" );
45
+ if (ProjectUtils .isRelease (project ) && project .hasProperty ("ossrhUsername" )) {
46
+ finalizeDeployArtifacts .dependsOn (project .getTasks ().findByName ("closeOssrhStagingRepository" ));
47
+ }
43
48
}
44
49
45
50
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public void apply(Project project) {
13
13
publishArtifacts .setGroup ("Publishing" );
14
14
publishArtifacts .setDescription ("Publish the artifacts to either Artifactory or Maven Central based on the version" );
15
15
if (ProjectUtils .isRelease (project )) {
16
- publishArtifacts .dependsOn ("publishToOssrh" , "closeOssrhStagingRepository" );
16
+ publishArtifacts .dependsOn ("publishToOssrh" );
17
17
}
18
18
else {
19
19
publishArtifacts .dependsOn ("artifactoryPublish" );
You can’t perform that action at this time.
0 commit comments