Skip to content

Commit 4240f85

Browse files
committed
Add new sonatype release configuration
1 parent 7658cd3 commit 4240f85

2 files changed

Lines changed: 70 additions & 5 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ Java-based codings helper classes for Joni and JRuby
66
## License
77

88
JCodings is released under the [MIT License](http://www.opensource.org/licenses/MIT).
9+
10+
## Publishing
11+
12+
Builds can be published using `mvn deploy`.
13+
14+
See https://central.sonatype.org/publish/publish-portal-maven/#publishing

pom.xml

Lines changed: 64 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
<version>1.0.64-SNAPSHOT</version>
77
<name>JCodings</name>
88
<description>Byte based encoding support library for java</description>
9-
<parent>
10-
<groupId>org.sonatype.oss</groupId>
11-
<artifactId>oss-parent</artifactId>
12-
<version>7</version>
13-
</parent>
9+
<url>https://github.com/jruby/jcodings</url>
1410
<licenses>
1511
<license>
1612
<name>MIT License</name>
@@ -107,6 +103,15 @@
107103
<trimStackTrace>false</trimStackTrace>
108104
</configuration>
109105
</plugin>
106+
<plugin>
107+
<groupId>org.sonatype.central</groupId>
108+
<artifactId>central-publishing-maven-plugin</artifactId>
109+
<version>0.7.0</version>
110+
<extensions>true</extensions>
111+
<configuration>
112+
<publishingServerId>central</publishingServerId>
113+
</configuration>
114+
</plugin>
110115
</plugins>
111116
</build>
112117
<profiles>
@@ -167,5 +172,59 @@
167172
</plugins>
168173
</build>
169174
</profile>
175+
<profile>
176+
<id>release</id>
177+
<build>
178+
<plugins>
179+
<plugin>
180+
<artifactId>maven-source-plugin</artifactId>
181+
<executions>
182+
<execution>
183+
<id>attach-sources</id>
184+
<goals>
185+
<goal>jar-no-fork</goal>
186+
</goals>
187+
</execution>
188+
</executions>
189+
</plugin>
190+
<plugin>
191+
<artifactId>maven-javadoc-plugin</artifactId>
192+
<executions>
193+
<execution>
194+
<id>attach-javadocs</id>
195+
<goals>
196+
<goal>jar</goal>
197+
</goals>
198+
</execution>
199+
</executions>
200+
<configuration>
201+
<doclint>none</doclint>
202+
</configuration>
203+
</plugin>
204+
<plugin>
205+
<artifactId>maven-gpg-plugin</artifactId>
206+
<version>3.2.4</version>
207+
<executions>
208+
<execution>
209+
<id>sign-artifacts</id>
210+
<phase>verify</phase>
211+
<goals>
212+
<goal>sign</goal>
213+
</goals>
214+
</execution>
215+
</executions>
216+
<configuration>
217+
<gpgArguments>
218+
<gpgArgument>--pinentry-mode</gpgArgument>
219+
<gpgArgument>loopback</gpgArgument>
220+
</gpgArguments>
221+
</configuration>
222+
</plugin>
223+
</plugins>
224+
</build>
225+
<properties>
226+
<invoker.skip>true</invoker.skip>
227+
</properties>
228+
</profile>
170229
</profiles>
171230
</project>

0 commit comments

Comments
 (0)