Skip to content
This repository has been archived by the owner on Jul 8, 2019. It is now read-only.

Commit

Permalink
Initial setup for deployment to Maven central (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablissimo committed Feb 20, 2017
1 parent ddc7053 commit f7b5e8d
Showing 1 changed file with 86 additions and 5 deletions.
91 changes: 86 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<groupId>com.pablissimo.sonar</groupId>
<artifactId>sonar-typescript-plugin</artifactId>
<packaging>sonar-plugin</packaging>
<version>1.0.0</version>
<version>1.1.0-SNAPSHOT</version>

<name>SonarTsPlugin</name>
<name>TypeScript</name>
<description>Analyse TypeScript projects</description>
<inceptionYear>2013</inceptionYear>
<url>https://github.com/pablissimo/SonarTsPlugin</url>
Expand All @@ -21,15 +21,24 @@
<developer>
<id>pablissimo</id>
<name>Paul O'Neill</name>
<url>http://pablissimo.com</url>
<url>https://pablissimo.com</url>
<organization>pablissimo.com</organization>
<organizationUrl>https://pablissimo.com</organizationUrl>
</developer>
</developers>

<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
</license>
</licenses>

<scm>
<connection>scm:git:git@github.com:Pablissimo/SonarTsPlugin.git</connection>
<developerConnection>scm:git:git@github.com:Pablissimo/SonarTsPlugin.git</developerConnection>
<url>https://github.com/Pablissimo/SonarTsPlugin</url>
<tag>1.0</tag>
<url>https://github.com/Pablissimo/SonarTsPlugin/tree/master</url>
<tag>1.0.0</tag>
</scm>
<issueManagement>
<system>Github</system>
Expand All @@ -51,6 +60,17 @@
<sonar.jacoco.reportPaths>target/jacoco.exec</sonar.jacoco.reportPaths>
</properties>

<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>

<dependencies>
<dependency>
<groupId>org.sonarsource.sonarqube</groupId>
Expand Down Expand Up @@ -221,4 +241,65 @@
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<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>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</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>

<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>false</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit f7b5e8d

Please sign in to comment.