Skip to content

Commit 03ebc11

Browse files
author
Jeremy D. Young
committed
DEVHUB-65 - Attempting to update publish config for maven central
1 parent c14a6ed commit 03ebc11

File tree

2 files changed

+44
-9
lines changed

2 files changed

+44
-9
lines changed

.github/workflows/release-sdk.yaml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,33 @@ jobs:
2121
# jdk: ${{ matrix.jdk }}
2222

2323
release-sdk:
24-
uses: ExpediaGroup/expediagroup-java-sdk/.github/workflows/selfserve-release-sdk.yaml@legacy
25-
# needs: [ run-examples ]
26-
secrets: inherit
27-
with:
28-
branch: ${{ inputs.core-ref }}
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Set up JDK 21
27+
uses: actions/setup-java@v4
28+
with:
29+
java-version: '21'
30+
distribution: 'temurin'
31+
server-id: central
32+
server-username: SONATYPE_USERNAME
33+
server-password: SONATYPE_PASSWORD
34+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
35+
gpg-passphrase: GPG_PASSPHRASE
36+
settings-path: ${{ github.workspace }}
37+
38+
- name: Checkout SDK branch
39+
uses: actions/checkout@v4
40+
with:
41+
ref: ${{ inputs.branch }}
42+
path: product-repo
43+
44+
- name: Release SDK
45+
working-directory: product-repo/${{ inputs.sdk_path }}
46+
env:
47+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
48+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
49+
GPG_PASSPHRASE: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
50+
run: |
51+
echo "Starting SDK Release - version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
52+
mvn deploy --settings $GITHUB_WORKSPACE/settings.xml -B -U -P release -DskipTests=true
53+
echo "SDK Released"

code/pom.xml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<version>5.4.1</version>
88
<name>EG rapid-sdk for Java</name>
99
<description>EG rapid-sdk v5.4.1</description>
10-
<url>https://github.com/ExpediaGroup/test-sdk</url>
10+
<url>https://github.com/ExpediaGroup/rapid-java-sdk</url>
1111
<inceptionYear>2022</inceptionYear>
1212
<packaging>jar</packaging>
1313

@@ -28,9 +28,9 @@
2828
</developers>
2929

3030
<scm>
31-
<connection>scm:git:[email protected]:ExpediaGroup/test-sdk.git</connection>
32-
<developerConnection>scm:git:[email protected]:ExpediaGroup/test-sdk.git</developerConnection>
33-
<url>https://github.com/ExpediaGroup/test-sdk/</url>
31+
<connection>scm:git:[email protected]:ExpediaGroup/rapid-java-sdk.git</connection>
32+
<developerConnection>scm:git:[email protected]:ExpediaGroup/rapid-java-sdk.git</developerConnection>
33+
<url>https://github.com/ExpediaGroup/rapid-java-sdk/</url>
3434
</scm>
3535

3636
<distributionManagement>
@@ -160,6 +160,16 @@
160160

161161
<build>
162162
<plugins>
163+
<plugin>
164+
<groupId>org.sonatype.central</groupId>
165+
<artifactId>central-publishing-maven-plugin</artifactId>
166+
<version>0.9.0</version>
167+
<extensions>true</extensions>
168+
<configuration>
169+
<publishingServerId>central</publishingServerId>
170+
<autoPublish>true</autoPublish>
171+
</configuration>
172+
</plugin>
163173
<plugin>
164174
<groupId>org.apache.maven.plugins</groupId>
165175
<artifactId>maven-resources-plugin</artifactId>

0 commit comments

Comments
 (0)