File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
buildSrc/src/main/java/org/springframework/security/kerberos/gradle Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,16 @@ public void execute(Task publishArtifacts) {
3030 publishArtifacts .setGroup ("Publishing" );
3131 publishArtifacts .setDescription ("Publish the artifacts to either Artifactory or Maven Central based on the version" );
3232 if (Utils .isRelease (project )) {
33- publishArtifacts .dependsOn ("publishToOssrh" );
34- }
35- else {
36- publishArtifacts .dependsOn ("artifactoryPublish" );
33+ // Don't depend on publishDocsPublicationToOssrhRepository as we don't
34+ // want dist zip for api docs on central
35+ Task publishOssrh = project .getTasks ().findByName ("publishMavenJavaPublicationToOssrhRepository" );
36+ if (publishOssrh != null ) {
37+ publishArtifacts .dependsOn (publishOssrh );
38+ }
3739 }
40+ // publishArtifacts.dependsOn("publishMavenJavaPublicationToOssrhRepository");
41+ // always publish to artifactory as we need apidocs via autorepo
42+ publishArtifacts .dependsOn ("artifactoryPublish" );
3843 }
3944 });
4045 }
You can’t perform that action at this time.
0 commit comments