Skip to content

Commit e968596

Browse files
committed
update pom
1 parent 38d947d commit e968596

File tree

2 files changed

+86
-6
lines changed

2 files changed

+86
-6
lines changed

custom_templates/pom.mustache

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<url>{{artifactUrl}}</url>
1010
<description>{{artifactDescription}}</description>
1111
<scm>
12-
<connection>{{scmConnection}}</connection>
13-
<developerConnection>{{scmDeveloperConnection}}</developerConnection>
14-
<url>{{scmUrl}}</url>
12+
<url>https://github.com/Bandwidth/java-sdk</url>
13+
<connection>scm:git:[email protected]:Bandwidth/java-sdk.git</connection>
14+
<developerConnection>scm:git:[email protected]:Bandwidth/java-sdk.git</developerConnection>
1515
</scm>
1616
{{#parentOverridden}}
1717
<parent>
@@ -21,6 +21,17 @@
2121
</parent>
2222
{{/parentOverridden}}
2323

24+
<distributionManagement>
25+
<snapshotRepository>
26+
<id>ossrh</id>
27+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
28+
</snapshotRepository>
29+
<repository>
30+
<id>ossrh</id>
31+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
32+
</repository>
33+
</distributionManagement>
34+
2435
<licenses>
2536
<license>
2637
<name>{{licenseName}}</name>
@@ -52,6 +63,10 @@
5263
<arg>-Xlint:all</arg>
5364
<arg>-J-Xss4m</arg><!-- Compiling the generated JSON.java file may require larger stack size. -->
5465
</compilerArgs>
66+
<forceJavacCompilerUse>true</forceJavacCompilerUse>
67+
<release>${java.version}</release>
68+
<source>${java.version}</source>
69+
<target>${java.version}</target>
5570
</configuration>
5671
</plugin>
5772
<plugin>
@@ -198,6 +213,31 @@
198213
</execution>
199214
</executions>
200215
</plugin>
216+
<plugin>
217+
<groupId>org.apache.maven.plugins</groupId>
218+
<artifactId>maven-gpg-plugin</artifactId>
219+
<version>3.0.1</version>
220+
<executions>
221+
<execution>
222+
<id>sign-artifacts</id>
223+
<phase>verify</phase>
224+
<goals>
225+
<goal>sign</goal>
226+
</goals>
227+
</execution>
228+
</executions>
229+
</plugin>
230+
<plugin>
231+
<groupId>org.sonatype.plugins</groupId>
232+
<artifactId>nexus-staging-maven-plugin</artifactId>
233+
<version>1.7.0</version>
234+
<extensions>true</extensions>
235+
<configuration>
236+
<serverId>ossrh</serverId>
237+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
238+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
239+
</configuration>
240+
</plugin>
201241
<!-- Use spotless plugin to automatically format code, remove unused import, etc
202242
To apply changes directly to the file, run `mvn spotless:apply`
203243
Ref: https://github.com/diffplug/spotless/tree/main/plugin-maven

pom.xml

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,22 @@
99
<url>https://github.com/Bandwidth/java-sdk</url>
1010
<description>The official client SDK for Bandwidth&#39;s Voice, Messaging, MFA, and WebRTC APIs</description>
1111
<scm>
12-
<connection>scm:git:git@github.com:openapitools/openapi-generator.git</connection>
13-
<developerConnection>scm:git:[email protected]:openapitools/openapi-generator.git</developerConnection>
14-
<url>https://github.com/openapitools/openapi-generator</url>
12+
<url>https://github.com/Bandwidth/java-sdk</url>
13+
<connection>scm:git:[email protected]:Bandwidth/java-sdk.git</connection>
14+
<developerConnection>scm:git:git@github.com:Bandwidth/java-sdk.git</developerConnection>
1515
</scm>
1616

17+
<distributionManagement>
18+
<snapshotRepository>
19+
<id>ossrh</id>
20+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
21+
</snapshotRepository>
22+
<repository>
23+
<id>ossrh</id>
24+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
25+
</repository>
26+
</distributionManagement>
27+
1728
<licenses>
1829
<license>
1930
<name>MIT</name>
@@ -45,6 +56,10 @@
4556
<arg>-Xlint:all</arg>
4657
<arg>-J-Xss4m</arg><!-- Compiling the generated JSON.java file may require larger stack size. -->
4758
</compilerArgs>
59+
<forceJavacCompilerUse>true</forceJavacCompilerUse>
60+
<release>${java.version}</release>
61+
<source>${java.version}</source>
62+
<target>${java.version}</target>
4863
</configuration>
4964
</plugin>
5065
<plugin>
@@ -191,6 +206,31 @@
191206
</execution>
192207
</executions>
193208
</plugin>
209+
<plugin>
210+
<groupId>org.apache.maven.plugins</groupId>
211+
<artifactId>maven-gpg-plugin</artifactId>
212+
<version>3.0.1</version>
213+
<executions>
214+
<execution>
215+
<id>sign-artifacts</id>
216+
<phase>verify</phase>
217+
<goals>
218+
<goal>sign</goal>
219+
</goals>
220+
</execution>
221+
</executions>
222+
</plugin>
223+
<plugin>
224+
<groupId>org.sonatype.plugins</groupId>
225+
<artifactId>nexus-staging-maven-plugin</artifactId>
226+
<version>1.7.0</version>
227+
<extensions>true</extensions>
228+
<configuration>
229+
<serverId>ossrh</serverId>
230+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
231+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
232+
</configuration>
233+
</plugin>
194234
<!-- Use spotless plugin to automatically format code, remove unused import, etc
195235
To apply changes directly to the file, run `mvn spotless:apply`
196236
Ref: https://github.com/diffplug/spotless/tree/main/plugin-maven

0 commit comments

Comments
 (0)