Skip to content

Commit

Permalink
Add plugins related to deploying in Maven Central
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Dolski committed Nov 12, 2019
1 parent ff1622f commit 38ffe5b
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@

# IDE stuff
/*.iml

# Maven Central stuff
/release.properties
108 changes: 107 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>edu.illinois.library</groupId>
<artifactId>imageio-xpm</artifactId>
<!-- N.B.: this needs to be kept in sync with XPMImageReaderSpi.VERSION -->
<version>1.0</version>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Image I/O XPM Plugin</name>
Expand All @@ -23,9 +23,30 @@
</licenses>

<scm>
<connection>scm:git:git://github.com/cantaloupe-project/imageio-xpm.git</connection>
<developerConnection>scm:git:git@github.com:cantaloupe-project/imageio-xpm.git</developerConnection>
<url>https://github.com/cantaloupe-project/imageio-xpm.git</url>
<tag>HEAD</tag>
</scm>

<developers>
<developer>
<id>alexd</id>
<name>Alex Dolski</name>
<email>alexd@n-ary.net</email>
<roles>
<role>founder</role>
<role>lead</role>
<role>developer</role>
<role>debugger</role>
<role>reviewer</role>
<role>support</role>
<role>maintainer</role>
</roles>
<timezone>-6</timezone>
</developer>
</developers>

<dependencies>
<!-- Unit tests -->
<dependency>
Expand Down Expand Up @@ -56,7 +77,92 @@
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<localCheckout>true</localCheckout>
<pushChanges>false</pushChanges>
<mavenExecutorId>forked-path</mavenExecutorId>
<arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-gitexe</artifactId>
<version>1.9.5</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>maven-central</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.0</version>
<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>
<version>3.1.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<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>
</plugins>
</build>

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

</project>

0 comments on commit 38ffe5b

Please sign in to comment.