Skip to content

Commit 50da01f

Browse files
peterzhuamazongithub-actions[bot]
authored andcommitted
Revert #764 to only use shadowjar publication (#959)
* Revert #764 to only use shadowjar publication Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> * Restore changes Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> --------- Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> (cherry picked from commit e6dabc0)
1 parent 244fb9f commit 50da01f

File tree

3 files changed

+1
-31
lines changed

3 files changed

+1
-31
lines changed

client/build.gradle

-29
Original file line numberDiff line numberDiff line change
@@ -107,35 +107,6 @@ publishing {
107107
}
108108
}
109109
}
110-
jars(MavenPublication) { publication ->
111-
from components.java
112-
artifact sourcesJar
113-
artifact javadocJar
114-
115-
pom {
116-
name = "OpenSearch Machine Learning Client"
117-
packaging = "jar"
118-
url = "https://github.com/opensearch-project/ml-commons"
119-
description = "OpenSearch Machine Learning Client"
120-
scm {
121-
connection = "scm:git@github.com:opensearch-project/ml-commons.git"
122-
developerConnection = "scm:git@github.com:opensearch-project/ml-commons.git"
123-
url = "git@github.com:opensearch-project/ml-commons.git"
124-
}
125-
licenses {
126-
license {
127-
name = "The Apache License, Version 2.0"
128-
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
129-
}
130-
}
131-
developers {
132-
developer {
133-
name = "OpenSearch"
134-
url = "https://github.com/opensearch-project/ml-commons"
135-
}
136-
}
137-
}
138-
}
139110

140111
}
141112

scripts/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ cp -r ./build/local-staging-repo/org/opensearch/. $OUTPUT/maven/org/opensearch
7676
./gradlew assemble --no-daemon --refresh-dependencies -DskipTests=true -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER
7777
[ -z "$OUTPUT" ] && OUTPUT=artifacts
7878
mkdir -p $OUTPUT/plugins
79-
cp ./plugin/build/distributions/*.zip $OUTPUT/plugins
79+
cp ./plugin/build/distributions/*.zip $OUTPUT/plugins

settings.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ 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)