Skip to content

Commit da0c95f

Browse files
committed
mvn deploy, sign with gpg, generate javadocs, upload
1 parent 8afc2e2 commit da0c95f

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

pom.xml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,73 @@
125125
</dependency>
126126
</dependencies>
127127
<profiles>
128+
<profile>
129+
<id>deployment</id>
130+
<build>
131+
<plugins>
132+
<plugin>
133+
<groupId>org.apache.maven.plugins</groupId>
134+
<artifactId>maven-javadoc-plugin</artifactId>
135+
<version>3.10.1</version>
136+
<executions>
137+
<execution>
138+
<id>attach-javadocs</id>
139+
<goals>
140+
<goal>jar</goal>
141+
</goals>
142+
</execution>
143+
</executions>
144+
</plugin>
145+
<plugin>
146+
<groupId>org.apache.maven.plugins</groupId>
147+
<artifactId>maven-source-plugin</artifactId>
148+
<version>3.3.1</version>
149+
<executions>
150+
<execution>
151+
<id>attach-sources</id>
152+
<goals>
153+
<goal>jar-no-fork</goal>
154+
</goals>
155+
</execution>
156+
</executions>
157+
</plugin>
158+
<plugin>
159+
<groupId>org.apache.maven.plugins</groupId>
160+
<artifactId>maven-gpg-plugin</artifactId>
161+
<version>3.2.8</version>
162+
<configuration>
163+
<!-- Optional: specify which key to use -->
164+
<keyname>${gpg.keyname}</keyname>
165+
<!-- Prevent gpg from using pinentry programs -->
166+
<gpgArguments>
167+
<arg>--pinentry-mode</arg>
168+
<arg>loopback</arg>
169+
</gpgArguments>
170+
</configuration>
171+
<executions>
172+
<execution>
173+
<id>sign-artifacts</id>
174+
<phase>verify</phase>
175+
<goals>
176+
<goal>sign</goal>
177+
</goals>
178+
</execution>
179+
</executions>
180+
</plugin>
181+
<plugin>
182+
<groupId>org.sonatype.central</groupId>
183+
<artifactId>central-publishing-maven-plugin</artifactId>
184+
<version>0.9.0</version>
185+
<extensions>true</extensions>
186+
<configuration>
187+
<publishingServerId>central</publishingServerId>
188+
<autoPublish>true</autoPublish>
189+
<waitUntil>uploaded</waitUntil>
190+
</configuration>
191+
</plugin>
192+
</plugins>
193+
</build>
194+
</profile>
128195
<profile>
129196
<id>github</id>
130197
<activation>

0 commit comments

Comments
 (0)