Skip to content

Commit 9ef1ba3

Browse files
authored
Upgrade dependencies and maven central publishing ahead of 0.11 release (#329)
1 parent 9e3cebf commit 9ef1ba3

3 files changed

Lines changed: 37 additions & 14 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
build_and_test:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
16-
- name: Set up JDK 11
17-
uses: actions/setup-java@v2
15+
- uses: actions/checkout@v6
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v5
1818
with:
19-
java-version: '11'
19+
java-version: '17'
2020
distribution: 'temurin'
2121
- name: Build and validate project
2222
run: mvn -B package --file pom.xml

.github/workflows/release-pom.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ jobs:
1111
run:
1212
working-directory: modules
1313
steps:
14-
- uses: actions/checkout@v2
15-
- name: Set up JDK 11
16-
uses: actions/setup-java@v2
14+
- uses: actions/checkout@v6
15+
- name: Set up Maven Central Repository
16+
uses: actions/setup-java@v5
1717
with:
18-
java-version: '11'
18+
java-version: '17'
1919
distribution: 'temurin'
20-
server-id: ossrh
20+
server-id: central
2121
server-username: OSSRH_USER
2222
server-password: OSSRH_PASS
2323
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
2424
gpg-passphrase: GPG_PASSPHRASE
2525
- name: Build and validate project
2626
run: mvn -B deploy -P release-pom --file pom.xml
2727
env:
28-
OSSRH_USER: ${{ secrets.OSSRH_USER }}
29-
OSSRH_PASS: ${{ secrets.OSSRH_PASS }}
28+
OSSRH_USER: ${{ secrets.OSSRH_TOKEN_USER }}
29+
OSSRH_PASS: ${{ secrets.OSSRH_TOKEN_PASSWD }}
3030
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

pom.xml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@
7979
<plugin>
8080
<groupId>org.apache.maven.plugins</groupId>
8181
<artifactId>maven-dependency-plugin</artifactId>
82-
<version>3.2.0</version>
82+
<version>3.6.1</version>
8383
</plugin>
8484
<plugin>
8585
<groupId>org.apache.netbeans.utilities</groupId>
8686
<artifactId>nbm-maven-plugin</artifactId>
87-
<version>4.5</version>
87+
<version>14.3</version>
8888
<extensions>true</extensions>
8989
</plugin>
9090
<plugin>
@@ -95,7 +95,13 @@
9595
<plugin>
9696
<groupId>org.apache.maven.plugins</groupId>
9797
<artifactId>maven-scm-publish-plugin</artifactId>
98-
<version>3.1.0</version>
98+
<version>3.2.1</version>
99+
</plugin>
100+
<plugin>
101+
<groupId>org.sonatype.central</groupId>
102+
<artifactId>central-publishing-maven-plugin</artifactId>
103+
<version>0.10.0</version>
104+
<extensions>true</extensions>
99105
</plugin>
100106
</plugins>
101107
</pluginManagement>
@@ -176,6 +182,23 @@
176182

177183
<!-- Custom profile only used to build and package all modules at once -->
178184
<profiles>
185+
<profile>
186+
<id>release-pom</id>
187+
<build>
188+
<plugins>
189+
<!-- Maven central -->
190+
<plugin>
191+
<groupId>org.sonatype.central</groupId>
192+
<artifactId>central-publishing-maven-plugin</artifactId>
193+
<extensions>true</extensions>
194+
<configuration>
195+
<publishingServerId>central</publishingServerId>
196+
<autoPublish>true</autoPublish>
197+
</configuration>
198+
</plugin>
199+
</plugins>
200+
</build>
201+
</profile>
179202
<profile>
180203
<id>release</id>
181204
<build>

0 commit comments

Comments
 (0)