Skip to content

Commit

Permalink
build: 1.1 release to maven central repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Anilople committed Feb 22, 2021
1 parent 414df18 commit b4b29a2
Showing 1 changed file with 106 additions and 1 deletion.
107 changes: 106 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,30 @@

<groupId>com.github.anilople</groupId>
<artifactId>javajvm</artifactId>
<version>1.1-SNAPSHOT</version>
<version>1.1</version>

<name>${project.artifactId}</name>
<description>Use Java to Implement JVM</description>
<url>https://github.com/anilople/javajvm</url>
<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/anilople/javajvm</url>
<connection>scm:git:https://github.com/anilople/javajvm.git</connection>
<developerConnection>scm:git:https://github.com/anilople/javajvm.git</developerConnection>
</scm>
<developers>
<developer>
<name>anilople</name>
<email>none</email>
<url>https://github.com/anilople/javajvm</url>
</developer>
</developers>

<properties>
<fully.qualified.main.class>com.github.anilople.javajvm.JavaJvmApplication</fully.qualified.main.class>
Expand Down Expand Up @@ -122,4 +145,86 @@
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<configuration>
<!--
disable the strict checking
Reference https://stackoverflow.com/questions/23542876/unable-to-build-maven-project-due-to-javadoc-error
-->
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- deploy to maven central -->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</project>

0 comments on commit b4b29a2

Please sign in to comment.