Skip to content

Commit

Permalink
Revert #764 to only use shadowjar publication (#959) (#1260)
Browse files Browse the repository at this point in the history
* Revert #764 to only use shadowjar publication



* Restore changes



---------

Signed-off-by: Peter Zhu <[email protected]>
Co-authored-by: Peter Zhu <[email protected]>
  • Loading branch information
zane-neo and peterzhuamazon authored Aug 28, 2023
1 parent be8c839 commit 1fe3581
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 31 deletions.
29 changes: 0 additions & 29 deletions client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -107,35 +107,6 @@ publishing {
}
}
}
jars(MavenPublication) { publication ->
from components.java
artifact sourcesJar
artifact javadocJar

pom {
name = "OpenSearch Machine Learning Client"
packaging = "jar"
url = "https://github.com/opensearch-project/ml-commons"
description = "OpenSearch Machine Learning Client"
scm {
connection = "scm:[email protected]:opensearch-project/ml-commons.git"
developerConnection = "scm:[email protected]:opensearch-project/ml-commons.git"
url = "[email protected]:opensearch-project/ml-commons.git"
}
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
name = "OpenSearch"
url = "https://github.com/opensearch-project/ml-commons"
}
}
}
}

}

Expand Down
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ cp -r ./build/local-staging-repo/org/opensearch/. $OUTPUT/maven/org/opensearch
./gradlew assemble --no-daemon --refresh-dependencies -DskipTests=true -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER
[ -z "$OUTPUT" ] && OUTPUT=artifacts
mkdir -p $OUTPUT/plugins
cp ./plugin/build/distributions/*.zip $OUTPUT/plugins
cp ./plugin/build/distributions/*.zip $OUTPUT/plugins
1 change: 0 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ project(":plugin").name = rootProject.name + "-plugin"
include 'ml-algorithms'
project(":ml-algorithms").name = rootProject.name + "-algorithms"

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

0 comments on commit 1fe3581

Please sign in to comment.