Skip to content

Commit 3493982

Browse files
committed
chore: add Maven Central publishing config to pom.xml
1 parent dffbe78 commit 3493982

1 file changed

Lines changed: 95 additions & 0 deletions

File tree

pom.xml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,32 @@
2020
</license>
2121
</licenses>
2222

23+
<developers>
24+
<developer>
25+
<name>Deepgram</name>
26+
<email>devrel@deepgram.com</email>
27+
<organization>Deepgram</organization>
28+
<organizationUrl>https://deepgram.com</organizationUrl>
29+
</developer>
30+
</developers>
31+
32+
<scm>
33+
<connection>scm:git:git://github.com/deepgram/deepgram-java-sdk.git</connection>
34+
<developerConnection>scm:git:ssh://github.com:deepgram/deepgram-java-sdk.git</developerConnection>
35+
<url>https://github.com/deepgram/deepgram-java-sdk</url>
36+
</scm>
37+
38+
<distributionManagement>
39+
<snapshotRepository>
40+
<id>central</id>
41+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
42+
</snapshotRepository>
43+
<repository>
44+
<id>central</id>
45+
<url>https://central.sonatype.com</url>
46+
</repository>
47+
</distributionManagement>
48+
2349
<properties>
2450
<maven.compiler.source>11</maven.compiler.source>
2551
<maven.compiler.target>11</maven.compiler.target>
@@ -140,4 +166,73 @@
140166
</plugin>
141167
</plugins>
142168
</build>
169+
170+
<profiles>
171+
<profile>
172+
<id>release</id>
173+
<build>
174+
<plugins>
175+
<plugin>
176+
<groupId>org.apache.maven.plugins</groupId>
177+
<artifactId>maven-source-plugin</artifactId>
178+
<version>3.3.1</version>
179+
<executions>
180+
<execution>
181+
<id>attach-sources</id>
182+
<goals>
183+
<goal>jar-no-fork</goal>
184+
</goals>
185+
</execution>
186+
</executions>
187+
</plugin>
188+
<plugin>
189+
<groupId>org.apache.maven.plugins</groupId>
190+
<artifactId>maven-javadoc-plugin</artifactId>
191+
<version>3.6.3</version>
192+
<configuration>
193+
<doclint>none</doclint>
194+
</configuration>
195+
<executions>
196+
<execution>
197+
<id>attach-javadocs</id>
198+
<goals>
199+
<goal>jar</goal>
200+
</goals>
201+
</execution>
202+
</executions>
203+
</plugin>
204+
<plugin>
205+
<groupId>org.apache.maven.plugins</groupId>
206+
<artifactId>maven-gpg-plugin</artifactId>
207+
<version>3.2.4</version>
208+
<executions>
209+
<execution>
210+
<id>sign-artifacts</id>
211+
<phase>verify</phase>
212+
<goals>
213+
<goal>sign</goal>
214+
</goals>
215+
<configuration>
216+
<gpgArguments>
217+
<arg>--pinentry-mode</arg>
218+
<arg>loopback</arg>
219+
</gpgArguments>
220+
</configuration>
221+
</execution>
222+
</executions>
223+
</plugin>
224+
<plugin>
225+
<groupId>org.sonatype.central</groupId>
226+
<artifactId>central-publishing-maven-plugin</artifactId>
227+
<version>0.7.0</version>
228+
<extensions>true</extensions>
229+
<configuration>
230+
<publishingServerId>central</publishingServerId>
231+
<autoPublish>true</autoPublish>
232+
</configuration>
233+
</plugin>
234+
</plugins>
235+
</build>
236+
</profile>
237+
</profiles>
143238
</project>

0 commit comments

Comments
 (0)