Skip to content

Commit

Permalink
Prepped the pom for release to Maven Central.
Browse files Browse the repository at this point in the history
  • Loading branch information
jchambers committed Sep 9, 2018
1 parent ff8334f commit 404f6f0
Showing 1 changed file with 105 additions and 1 deletion.
106 changes: 105 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,51 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.eatthepath</groupId>
<artifactId>java-otp</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>java-otp</name>
<description>A one-time password library for Java</description>
<description>A one-time password (HOTP and TOTP) library for Java</description>
<inceptionYear>2016</inceptionYear>
<url>https://github.com/jchambers/java-otp</url>

<scm>
<connection>scm:git:https://github.com/jchambers/java-otp.git</connection>
<developerConnection>scm:git:[email protected]:jchambers/java-otp.git</developerConnection>
<url>https://github.com/jchambers/java-otp</url>
</scm>

<developers>
<developer>
<id>jon</id>
<name>Jon Chambers</name>
<email>[email protected]</email>
<url>https://github.com/jchambers</url>
<roles>
<role>developer</role>
</roles>
<timezone>-5</timezone>
</developer>
</developers>

<licenses>
<license>
<name>The MIT License (MIT)</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>

<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
Expand Down Expand Up @@ -34,6 +74,18 @@
<target>1.7</target>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<excludes>
<exclude>**/.gitignore</exclude>
</excludes>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
Expand All @@ -42,7 +94,59 @@
<overview>${basedir}/src/main/java/overview.html</overview>
<show>public</show>
</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>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 404f6f0

Please sign in to comment.