File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,10 +26,18 @@ jobs:
2626 with :
2727 role-to-assume : ${{ secrets.PUBLISH_SNAPSHOTS_ROLE }}
2828 aws-region : us-east-1
29- - name : publish snapshots to maven
29+ - name : publish snapshots zip to maven
3030 run : |
3131 export SONATYPE_USERNAME=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-username --query SecretString --output text)
3232 export SONATYPE_PASSWORD=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-password --query SecretString --output text)
3333 echo "::add-mask::$SONATYPE_USERNAME"
3434 echo "::add-mask::$SONATYPE_PASSWORD"
3535 ./gradlew publishPluginZipPublicationToSnapshotsRepository
36+ - name : publish snapshots jar to maven
37+ run : |
38+ export SONATYPE_USERNAME=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-username --query SecretString --output text)
39+ export SONATYPE_PASSWORD=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-password --query SecretString --output text)
40+ echo "::add-mask::$SONATYPE_USERNAME"
41+ echo "::add-mask::$SONATYPE_PASSWORD"
42+ ./gradlew :geospatial-client:publishNebulaPublicationToSnapshotsRepository
43+
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ See the [CONTRIBUTING guide](./CONTRIBUTING.md#Changelog) for instructions on ho
2222### Bug Fixes
2323### Infrastructure
2424- Github ci-runner Node.js issue fix ([ #701 ] ( https://github.com/opensearch-project/geospatial/pull/701 ) )
25+ - Github CI pipeline update to publish geospatial-client Jar ([ #706 ] ( https://github.com/opensearch-project/geospatial/pull/706 ) )
2526### Documentation
2627### Maintenance
2728### Refactoring
Original file line number Diff line number Diff line change @@ -55,6 +55,16 @@ spotless {
5555}
5656
5757publishing {
58+ repositories {
59+ maven {
60+ name = " Snapshots"
61+ url = " https://aws.oss.sonatype.org/content/repositories/snapshots"
62+ credentials {
63+ username " $System . env . SONATYPE_USERNAME "
64+ password " $System . env . SONATYPE_PASSWORD "
65+ }
66+ }
67+ }
5868 publications {
5969 pluginZip(MavenPublication ) { publication ->
6070 pom {
You can’t perform that action at this time.
0 commit comments