Skip to content

Commit 404f6f0

Browse files
committed
Prepped the pom for release to Maven Central.
1 parent ff8334f commit 404f6f0

File tree

1 file changed

+105
-1
lines changed

1 file changed

+105
-1
lines changed

pom.xml

Lines changed: 105 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,51 @@
11
<?xml version="1.0"?>
22
<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">
33
<modelVersion>4.0.0</modelVersion>
4+
45
<groupId>com.eatthepath</groupId>
56
<artifactId>java-otp</artifactId>
67
<version>0.0.1-SNAPSHOT</version>
78
<name>java-otp</name>
8-
<description>A one-time password library for Java</description>
9+
<description>A one-time password (HOTP and TOTP) library for Java</description>
10+
<inceptionYear>2016</inceptionYear>
11+
<url>https://github.com/jchambers/java-otp</url>
12+
13+
<scm>
14+
<connection>scm:git:https://github.com/jchambers/java-otp.git</connection>
15+
<developerConnection>scm:git:git@github.com:jchambers/java-otp.git</developerConnection>
16+
<url>https://github.com/jchambers/java-otp</url>
17+
</scm>
18+
19+
<developers>
20+
<developer>
21+
<id>jon</id>
22+
<name>Jon Chambers</name>
23+
<email>jon.chambers@gmail.com</email>
24+
<url>https://github.com/jchambers</url>
25+
<roles>
26+
<role>developer</role>
27+
</roles>
28+
<timezone>-5</timezone>
29+
</developer>
30+
</developers>
31+
32+
<licenses>
33+
<license>
34+
<name>The MIT License (MIT)</name>
35+
<url>http://opensource.org/licenses/MIT</url>
36+
<distribution>repo</distribution>
37+
</license>
38+
</licenses>
39+
40+
<parent>
41+
<groupId>org.sonatype.oss</groupId>
42+
<artifactId>oss-parent</artifactId>
43+
<version>7</version>
44+
</parent>
45+
46+
<properties>
47+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
48+
</properties>
949

1050
<dependencies>
1151
<dependency>
@@ -34,6 +74,18 @@
3474
<target>1.7</target>
3575
</configuration>
3676
</plugin>
77+
78+
<plugin>
79+
<groupId>org.apache.maven.plugins</groupId>
80+
<artifactId>maven-jar-plugin</artifactId>
81+
<version>3.0.2</version>
82+
<configuration>
83+
<excludes>
84+
<exclude>**/.gitignore</exclude>
85+
</excludes>
86+
</configuration>
87+
</plugin>
88+
3789
<plugin>
3890
<groupId>org.apache.maven.plugins</groupId>
3991
<artifactId>maven-javadoc-plugin</artifactId>
@@ -42,7 +94,59 @@
4294
<overview>${basedir}/src/main/java/overview.html</overview>
4395
<show>public</show>
4496
</configuration>
97+
<executions>
98+
<execution>
99+
<id>attach-javadocs</id>
100+
<goals>
101+
<goal>jar</goal>
102+
</goals>
103+
</execution>
104+
</executions>
105+
</plugin>
106+
107+
<plugin>
108+
<groupId>org.apache.maven.plugins</groupId>
109+
<artifactId>maven-source-plugin</artifactId>
110+
<version>2.2.1</version>
111+
<executions>
112+
<execution>
113+
<id>attach-sources</id>
114+
<goals>
115+
<goal>jar</goal>
116+
</goals>
117+
</execution>
118+
</executions>
45119
</plugin>
46120
</plugins>
47121
</build>
122+
123+
<profiles>
124+
<profile>
125+
<id>release-sign-artifacts</id>
126+
<activation>
127+
<property>
128+
<name>performRelease</name>
129+
<value>true</value>
130+
</property>
131+
</activation>
132+
<build>
133+
<plugins>
134+
<plugin>
135+
<groupId>org.apache.maven.plugins</groupId>
136+
<artifactId>maven-gpg-plugin</artifactId>
137+
<version>1.1</version>
138+
<executions>
139+
<execution>
140+
<id>sign-artifacts</id>
141+
<phase>verify</phase>
142+
<goals>
143+
<goal>sign</goal>
144+
</goals>
145+
</execution>
146+
</executions>
147+
</plugin>
148+
</plugins>
149+
</build>
150+
</profile>
151+
</profiles>
48152
</project>

0 commit comments

Comments
 (0)