Skip to content

Commit 50583bd

Browse files
committed
Add Options for release, sign and URL
1 parent aec9423 commit 50583bd

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

pom.xml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<name>Beam SDK for Astra</name>
88
<packaging>jar</packaging>
99
<version>0.2-SNAPSHOT</version>
10+
<url>https://github.com/clun/beam-sdks-java-io-astra</url>
1011

1112
<properties>
1213
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -28,12 +29,15 @@
2829
<version.maven.plugin.dependency>3.5.0</version.maven.plugin.dependency>
2930
<version.maven.plugin.enforcer>3.3.0</version.maven.plugin.enforcer>
3031
<version.maven.plugin.exec>1.6.0</version.maven.plugin.exec>
32+
<version.maven.plugin.gpg>3.0.1</version.maven.plugin.gpg>
3133
<version.maven.plugin.jar>3.3.0</version.maven.plugin.jar>
3234
<version.maven.plugin.javadoc>3.4.1</version.maven.plugin.javadoc>
3335
<version.maven.plugin.license>2.0.0</version.maven.plugin.license>
36+
<version.maven.plugin.nexus>1.6.8</version.maven.plugin.nexus>
3437
<version.maven.plugin.release>2.5.2</version.maven.plugin.release>
3538
<version.maven.plugin.resources>3.3.1</version.maven.plugin.resources>
3639
<version.maven.plugin.shade>3.4.1</version.maven.plugin.shade>
40+
<version.maven.plugin.source>2.2.1</version.maven.plugin.source>
3741
<version.maven.plugin.surefire>2.22.2</version.maven.plugin.surefire>
3842
</properties>
3943

@@ -135,6 +139,32 @@
135139
<configuration>
136140
<source>${maven.plugin.compiler.source}</source>
137141
<target>${maven.plugin.compiler.target}</target>
142+
<showWarnings>false</showWarnings>
143+
</configuration>
144+
</plugin>
145+
146+
<plugin>
147+
<artifactId>maven-source-plugin</artifactId>
148+
<version>${version.maven.plugin.source}</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+
159+
<plugin>
160+
<artifactId>maven-release-plugin</artifactId>
161+
<version>${version.maven.plugin.release}</version>
162+
<configuration>
163+
<tagNameFormat>@{project.version}</tagNameFormat>
164+
<autoVersionSubmodules>true</autoVersionSubmodules>
165+
<useReleaseProfile>false</useReleaseProfile>
166+
<releaseProfiles>release</releaseProfiles>
167+
<goals>deploy</goals>
138168
</configuration>
139169
</plugin>
140170

@@ -144,6 +174,25 @@
144174
<version>${version.maven.plugin.dependency}</version>
145175
</plugin>
146176

177+
<plugin>
178+
<groupId>org.sonatype.plugins</groupId>
179+
<artifactId>nexus-staging-maven-plugin</artifactId>
180+
<version>${version.maven.plugin.nexus}</version>
181+
<extensions>true</extensions>
182+
<configuration>
183+
<serverId>ossrh</serverId>
184+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
185+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
186+
<skipLocalStaging>true</skipLocalStaging>
187+
</configuration>
188+
</plugin>
189+
190+
<plugin>
191+
<groupId>org.apache.maven.plugins</groupId>
192+
<artifactId>maven-gpg-plugin</artifactId>
193+
<version>${version.maven.plugin.gpg}</version>
194+
</plugin>
195+
147196
<plugin>
148197
<groupId>org.codehaus.mojo</groupId>
149198
<artifactId>license-maven-plugin</artifactId>
@@ -196,6 +245,29 @@
196245

197246
</build>
198247

248+
<profiles>
249+
<profile>
250+
<id>release</id>
251+
<build>
252+
<plugins>
253+
<plugin>
254+
<groupId>org.apache.maven.plugins</groupId>
255+
<artifactId>maven-gpg-plugin</artifactId>
256+
<executions>
257+
<execution>
258+
<id>sign-artifacts</id>
259+
<phase>verify</phase>
260+
<goals>
261+
<goal>sign</goal>
262+
</goals>
263+
</execution>
264+
</executions>
265+
</plugin>
266+
</plugins>
267+
</build>
268+
</profile>
269+
</profiles>
270+
199271
<organization>
200272
<name>DataStax</name>
201273
<url>http://datastax.com</url>

0 commit comments

Comments
 (0)