Skip to content

Commit

Permalink
remove -SNAPSHOT for 0.0.1 release, add maven-gpg-plugin
Browse files Browse the repository at this point in the history
add scm url, which is need to publish
  • Loading branch information
pdurbin committed May 22, 2024
1 parent 92ca02c commit 49e861e
Showing 1 changed file with 54 additions and 1 deletion.
55 changes: 54 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.dataverse.test</groupId>
<artifactId>hello</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.1</version>
<name>hello</name>
<description>A hello world app for testing.</description>
<url>https://github.com/gdcc/hello</url>
Expand All @@ -24,6 +24,7 @@
</developers>
<scm>
<developerConnection>scm:git:[email protected]:gdcc/hello.git</developerConnection>
<url>https://github.com/gdcc/hello</url>
</scm>
<distributionManagement>
<repository>
Expand All @@ -42,6 +43,7 @@
<nexus-staging-plugin.version>1.6.13</nexus-staging-plugin.version>
<pomchecker-maven-plugin.version>1.7.0</pomchecker-maven-plugin.version>
<spotless.version>2.43.0</spotless.version>
<javadoc.lint>none</javadoc.lint>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -120,4 +122,55 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<goals>
<goal>sign</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<source>${jdk.version}</source>
<detectJavaApiLink>false</detectJavaApiLink>
<doclint>${javadoc.lint}</doclint>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 49e861e

Please sign in to comment.