Skip to content

Commit be8c839

Browse files
Disable shadowjar publishing to remove race condition of normal jar publishing (opensearch-project#957) (opensearch-project#1259)
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> Co-authored-by: Peter Zhu <zhujiaxi@amazon.com>
1 parent d618df0 commit be8c839

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/build.gradle

+2-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ jacocoTestCoverageVerification {
4747
}
4848
check.dependsOn jacocoTestCoverageVerification
4949

50-
tasks.named("jar").configure { dependsOn("publishShadowPublicationToMavenLocal") }
51-
tasks.named("jar").configure { dependsOn("publishShadowPublicationToStagingRepository") }
52-
5350
shadowJar {
5451
archiveClassifier.set(null)
5552
}
@@ -112,6 +109,8 @@ publishing {
112109
}
113110
jars(MavenPublication) { publication ->
114111
from components.java
112+
artifact sourcesJar
113+
artifact javadocJar
115114

116115
pom {
117116
name = "OpenSearch Machine Learning Client"

settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ project(":plugin").name = rootProject.name + "-plugin"
1414
include 'ml-algorithms'
1515
project(":ml-algorithms").name = rootProject.name + "-algorithms"
1616

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

0 commit comments

Comments
 (0)