Skip to content

Commit 0dec652

Browse files
authored
chore: fix snapshot deployment + bump to 0.0.2-SNAPSHOT (#47)
* chore: 0.0.2-SNAPSHOT * temp deploy snapshot for pr * merge configs for maven-gpg-plugin and central-publishing-maven-plugin * add profile `deploy-release` * cleanup
1 parent e805e1a commit 0dec652

File tree

2 files changed

+34
-31
lines changed

2 files changed

+34
-31
lines changed

.github/actions/deploy-release/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ runs:
6262
-Dmaven.test.skip=true
6363
-Dgpg.passphrase="$GPG_PASSPHRASE"
6464
-Dgpg.keyname="$GPG_PUB_KEY"
65-
clean deploy
65+
clean deploy -P deploy-release
6666
shell: bash
6767
env:
6868
MAVEN_CENTRAL_USER: ${{ inputs.user }}

pom.xml

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xmlns="http://maven.apache.org/POM/4.0.0"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
43
<modelVersion>4.0.0</modelVersion>
54

65
<licenses>
@@ -24,7 +23,7 @@
2423
</developers>
2524

2625
<properties>
27-
<revision>0.0.1</revision>
26+
<revision>0.0.2-SNAPSHOT</revision>
2827
<java.version>17</java.version>
2928
<maven.compiler.release>${java.version}</maven.compiler.release>
3029
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -121,7 +120,6 @@
121120
<plugin>
122121
<artifactId>maven-surefire-plugin</artifactId>
123122
</plugin>
124-
125123
<!-- POM FLATTENING FOR CI FRIENDLY VERSIONS -->
126124
<plugin>
127125
<groupId>org.codehaus.mojo</groupId>
@@ -147,7 +145,6 @@
147145
</execution>
148146
</executions>
149147
</plugin>
150-
151148
<plugin>
152149
<artifactId>maven-enforcer-plugin</artifactId>
153150
<executions>
@@ -170,39 +167,16 @@
170167
</execution>
171168
</executions>
172169
</plugin>
173-
174-
<plugin>
175-
<artifactId>maven-gpg-plugin</artifactId>
176-
<executions>
177-
<execution>
178-
<id>sign-artifacts</id>
179-
<phase>deploy</phase>
180-
<goals>
181-
<goal>sign</goal>
182-
</goals>
183-
</execution>
184-
</executions>
185-
</plugin>
186-
187-
<plugin>
188-
<groupId>org.sonatype.central</groupId>
189-
<artifactId>central-publishing-maven-plugin</artifactId>
190-
<configuration>
191-
<publishingServerId>central</publishingServerId>
192-
</configuration>
193-
</plugin>
194-
195170
<plugin>
196171
<artifactId>maven-gpg-plugin</artifactId>
197-
<version>3.2.7</version>
172+
<version>3.2.8</version>
198173
</plugin>
199174
<plugin>
200175
<groupId>org.sonatype.central</groupId>
201176
<artifactId>central-publishing-maven-plugin</artifactId>
202-
<version>0.7.0</version>
177+
<version>0.8.0</version>
203178
<extensions>true</extensions>
204179
</plugin>
205-
206180
</plugins>
207181

208182
<pluginManagement>
@@ -258,6 +232,35 @@
258232
</pluginManagement>
259233
</build>
260234

235+
<profiles>
236+
<profile>
237+
<id>deploy-release</id>
238+
<build>
239+
<plugins>
240+
<plugin>
241+
<artifactId>maven-gpg-plugin</artifactId>
242+
<executions>
243+
<execution>
244+
<id>sign-artifacts</id>
245+
<phase>deploy</phase>
246+
<goals>
247+
<goal>sign</goal>
248+
</goals>
249+
</execution>
250+
</executions>
251+
</plugin>
252+
<plugin>
253+
<groupId>org.sonatype.central</groupId>
254+
<artifactId>central-publishing-maven-plugin</artifactId>
255+
<configuration>
256+
<publishingServerId>central</publishingServerId>
257+
</configuration>
258+
</plugin>
259+
</plugins>
260+
</build>
261+
</profile>
262+
</profiles>
263+
261264
<distributionManagement>
262265
<snapshotRepository>
263266
<id>artifactory</id>

0 commit comments

Comments
 (0)