Skip to content

Commit

Permalink
config pom.xml to deploy to maven central (#40)
Browse files Browse the repository at this point in the history
* add gitignore

* update gitignore

* comfigure pom.xml to be able to deploy to maven central

* remove gitignore in svg-core

* reset groupId

* use CRLF

* undo .gitignore change
  • Loading branch information
nidi3 authored and blackears committed Feb 14, 2019
1 parent 8fc4a51 commit 658fd1a
Showing 1 changed file with 66 additions and 1 deletion.
67 changes: 66 additions & 1 deletion svg-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.kitfox</groupId>
<artifactId>svgSalamander</artifactId>
<version>1.1.3-SNAPSHOT</version>
<version>1.1.2</version>
<packaging>jar</packaging>

<name>com.kitfox:svgSalamander</name>
Expand Down Expand Up @@ -35,6 +35,13 @@
<url>https://github.com/blackears/svgSalamander/tree/master/svg-core</url>
</scm>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

<properties>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
Expand Down Expand Up @@ -73,6 +80,64 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>deploy</id>
<build>
<plugins>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 658fd1a

Please sign in to comment.