Skip to content

Commit 124d6c8

Browse files
Attempt to update to maven central
1 parent 3a1bbb1 commit 124d6c8

File tree

2 files changed

+9
-41
lines changed

2 files changed

+9
-41
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,15 @@ jobs:
1717
uses: actions/setup-java@v3
1818
with:
1919
java-version: 8
20-
server-id: ossrh
20+
server-id: central
2121
distribution: "adopt"
22-
server-username: OSSRH_USERNAME
23-
server-password: OSSRH_PASSWORD
22+
server-username: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
23+
server-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
2424
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
25-
gpg-passphrase: GPG_PASSPHRASE
25+
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
2626

2727
- name: Publish to the Maven Central Repository
2828
run: mvn -Prelease -DskipTests=true --batch-mode deploy
29-
env:
30-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
31-
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
32-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
3329

3430
- name: Create GitHub release
3531
uses: softprops/action-gh-release@v1

pom.xml

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@
4848
<system>GitHub Actions</system>
4949
<url>https://github.com/databricks/databricks-sdk-java/blob/main/.github/workflows/push.yml</url>
5050
</ciManagement>
51-
<distributionManagement>
52-
<repository>
53-
<id>ossrh</id>
54-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
55-
</repository>
56-
</distributionManagement>
5751
<properties>
5852
<jacoco.version>0.8.10</jacoco.version>
5953
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -263,35 +257,13 @@
263257
</executions>
264258
</plugin>
265259
<plugin>
266-
<groupId>org.apache.maven.plugins</groupId>
267-
<artifactId>maven-gpg-plugin</artifactId>
268-
<version>1.6</version>
269-
<configuration>
270-
<!-- Prevent gpg from using pinentry programs -->
271-
<gpgArguments>
272-
<arg>--pinentry-mode</arg>
273-
<arg>loopback</arg>
274-
</gpgArguments>
275-
</configuration>
276-
<executions>
277-
<execution>
278-
<id>sign-artifacts</id>
279-
<goals>
280-
<goal>sign</goal>
281-
</goals>
282-
<phase>verify</phase>
283-
</execution>
284-
</executions>
285-
</plugin>
286-
<plugin>
287-
<groupId>org.sonatype.plugins</groupId>
288-
<artifactId>nexus-staging-maven-plugin</artifactId>
289-
<version>1.6.13</version>
260+
<groupId>org.sonatype.central</groupId>
261+
<artifactId>central-publishing-maven-plugin</artifactId>
262+
<version>0.5.0</version>
290263
<extensions>true</extensions>
291264
<configuration>
292-
<serverId>ossrh</serverId>
293-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
294-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
265+
<publishingServerId>central</publishingServerId>
266+
<autoPublish>true</autoPublish>
295267
</configuration>
296268
</plugin>
297269
</plugins>

0 commit comments

Comments
 (0)