Skip to content

Commit a342a59

Browse files
Update Repository URL
1 parent 013f09a commit a342a59

File tree

2 files changed

+84
-19
lines changed

2 files changed

+84
-19
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,14 @@ jobs:
6464
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
6565

6666
- name: Build and Deploy
67-
# run: mvn clean deploy -Psign-artifacts
67+
# run: mvn -P release --batch-mode deploy -DskipTests
6868
run: |
69-
mvn clean deploy -Psign-artifacts \
69+
mvn clean -P release deploy -DskipTests -Psign-artifacts \
7070
-Dgpg.passphrase="$GPG_PASSPHRASE" \
7171
-Dgpg.keyname="$GPG_KEY_ID"
7272
env:
7373
GPG_TTY: $(tty)
74+
MAVEN_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
75+
MAVEN_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
7476
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
75-
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
77+
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}

pom.xml

Lines changed: 79 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<plugin>
5050
<groupId>org.apache.maven.plugins</groupId>
5151
<artifactId>maven-gpg-plugin</artifactId>
52-
<version>3.0.1</version>
52+
<version>3.1.0</version>
5353
<executions>
5454
<execution>
5555
<id>sign-artifacts</id>
@@ -73,7 +73,76 @@
7373
</build>
7474
</profile>
7575
<profile>
76-
<id>ossrh</id>
76+
<id>release</id>
77+
<build>
78+
<plugins>
79+
<plugin>
80+
<groupId>org.sonatype.central</groupId>
81+
<artifactId>central-publishing-maven-plugin</artifactId>
82+
<version>0.4.0</version>
83+
<extensions>true</extensions>
84+
<configuration>
85+
<publishingServerId>central</publishingServerId>
86+
<tokenAuth>true</tokenAuth>
87+
<autoPublish>true</autoPublish>
88+
</configuration>
89+
</plugin>
90+
<plugin>
91+
<groupId>org.apache.maven.plugins</groupId>
92+
<artifactId>maven-source-plugin</artifactId>
93+
<version>3.3.0</version>
94+
<executions>
95+
<execution>
96+
<id>attach-sources</id>
97+
<phase>verify</phase>
98+
<goals>
99+
<goal>jar-no-fork</goal>
100+
</goals>
101+
</execution>
102+
</executions>
103+
</plugin>
104+
<plugin>
105+
<groupId>org.apache.maven.plugins</groupId>
106+
<artifactId>maven-javadoc-plugin</artifactId>
107+
<version>3.6.3</version>
108+
<executions>
109+
<execution>
110+
<id>attach-javadoc</id>
111+
<goals>
112+
<goal>jar</goal>
113+
</goals>
114+
</execution>
115+
</executions>
116+
<configuration>
117+
<stylesheet>java</stylesheet>
118+
<doclint>none</doclint>
119+
</configuration>
120+
</plugin>
121+
<plugin>
122+
<groupId>org.apache.maven.plugins</groupId>
123+
<artifactId>maven-gpg-plugin</artifactId>
124+
<version>3.1.0</version>
125+
<executions>
126+
<execution>
127+
<id>sign-artifacts</id>
128+
<phase>verify</phase>
129+
<goals>
130+
<goal>sign</goal>
131+
</goals>
132+
</execution>
133+
</executions>
134+
<configuration>
135+
<gpgArguments>
136+
<arg>--pinentry-mode</arg>
137+
<arg>loopback</arg>
138+
</gpgArguments>
139+
</configuration>
140+
</plugin>
141+
</plugins>
142+
</build>
143+
</profile>
144+
<profile>
145+
<id>central</id>
77146
<activation>
78147
<property>
79148
<name>performRelease</name>
@@ -111,7 +180,7 @@
111180
<version>0.7.0</version>
112181
<extensions>true</extensions>
113182
<configuration>
114-
<publishingServerId>ossrh</publishingServerId>
183+
<publishingServerId>central</publishingServerId>
115184
<autoPublish>true</autoPublish>
116185
<waitUntil>published</waitUntil>
117186
</configuration>
@@ -209,7 +278,7 @@
209278
<plugin>
210279
<groupId>org.apache.maven.plugins</groupId>
211280
<artifactId>maven-source-plugin</artifactId>
212-
<version>3.2.1</version>
281+
<version>3.3.0</version>
213282
<executions>
214283
<execution>
215284
<id>attach-sources</id>
@@ -222,7 +291,7 @@
222291
<plugin>
223292
<groupId>org.apache.maven.plugins</groupId>
224293
<artifactId>maven-javadoc-plugin</artifactId>
225-
<version>3.2.0</version>
294+
<version>3.6.3</version>
226295
<executions>
227296
<execution>
228297
<id>attach-javadocs</id>
@@ -231,6 +300,10 @@
231300
</goals>
232301
</execution>
233302
</executions>
303+
<configuration>
304+
<stylesheet>java</stylesheet>
305+
<doclint>none</doclint>
306+
</configuration>
234307
</plugin>
235308
<plugin>
236309
<artifactId>maven-assembly-plugin</artifactId>
@@ -258,7 +331,7 @@
258331
<tagNameFormat>@{project.version}</tagNameFormat>
259332
<localCheckout>true</localCheckout>
260333
<pushChanges>false</pushChanges>
261-
<releaseProfiles>ossrh</releaseProfiles>
334+
<releaseProfiles>central</releaseProfiles>
262335
</configuration>
263336
</plugin>
264337
<plugin>
@@ -338,14 +411,4 @@
338411
</plugin>
339412
</plugins>
340413
</build>
341-
<distributionManagement>
342-
<repository>
343-
<id>ossrh</id>
344-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
345-
</repository>
346-
<snapshotRepository>
347-
<id>ossrh</id>
348-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
349-
</snapshotRepository>
350-
</distributionManagement>
351414
</project>

0 commit comments

Comments
 (0)