-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add publication of jars workflow. (#764)
Signed-off-by: Yury-Fridlyand <[email protected]> (cherry picked from commit 22b66d5)
- Loading branch information
1 parent
46e9747
commit 922b47b
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,6 +69,14 @@ publishing { | |
name = 'staging' | ||
url = "${rootProject.buildDir}/local-staging-repo" | ||
} | ||
maven { | ||
name = "Snapshots" | ||
url = "https://aws.oss.sonatype.org/content/repositories/snapshots" | ||
credentials { | ||
username "$System.env.SONATYPE_USERNAME" | ||
password "$System.env.SONATYPE_PASSWORD" | ||
} | ||
} | ||
} | ||
publications { | ||
shadow(MavenPublication) { publication -> | ||
|
@@ -100,6 +108,34 @@ publishing { | |
} | ||
} | ||
} | ||
jars(MavenPublication) { publication -> | ||
from components.java | ||
|
||
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" | ||
} | ||
} | ||
} | ||
} | ||
|
||
} | ||
|
||
} | ||
|