Skip to content

Commit

Permalink
Disable shadowjar publishing to remove race condition of normal jar p…
Browse files Browse the repository at this point in the history
…ublishing (#957)

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon authored and zane-neo committed Aug 28, 2023
1 parent d618df0 commit 0abb844
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ jacocoTestCoverageVerification {
}
check.dependsOn jacocoTestCoverageVerification

tasks.named("jar").configure { dependsOn("publishShadowPublicationToMavenLocal") }
tasks.named("jar").configure { dependsOn("publishShadowPublicationToStagingRepository") }

shadowJar {
archiveClassifier.set(null)
}
Expand Down Expand Up @@ -112,6 +109,8 @@ publishing {
}
jars(MavenPublication) { publication ->
from components.java
artifact sourcesJar
artifact javadocJar

pom {
name = "OpenSearch Machine Learning Client"
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ project(":plugin").name = rootProject.name + "-plugin"
include 'ml-algorithms'
project(":ml-algorithms").name = rootProject.name + "-algorithms"

startParameter.excludedTaskNames=["publishShadowPublicationToStagingRepository", "publishShadowPublicationToMavenLocal"]

0 comments on commit 0abb844

Please sign in to comment.