Skip to content

Commit 0811353

Browse files
committed
Updated pom for upload to maven central
Updated the pom.xml to get it ready for inclusion on maven central. Set version to 1.0.0.
1 parent 1686cba commit 0811353

File tree

1 file changed

+80
-3
lines changed

1 file changed

+80
-3
lines changed

pom.xml

Lines changed: 80 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,32 @@
66
<artifactId>hap</artifactId>
77
<name>hap-java</name>
88
<description>Homekit Accessory Protocol for Java</description>
9-
<version>0.0.1-SNAPSHOT</version>
9+
<version>1.0.0</version>
10+
<packaging>jar</packaging>
11+
<url>http://www.github.com/beowulfe/HAP-Java</url>
12+
13+
<licenses>
14+
<license>
15+
<name>MIT License</name>
16+
<url>http://www.opensource.org/licenses/mit-license.php</url>
17+
<distribution>repo</distribution>
18+
</license>
19+
</licenses>
20+
21+
<scm>
22+
<connection>scm:git:git@github.com:beowulfe/HAP-Java.git</connection>
23+
<developerConnection>scm:git:git@github.com:beowulfe/HAP-Java.git</developerConnection>
24+
<url>https://github.com/beowulfe/HAP-Java.git</url>
25+
</scm>
26+
27+
<developers>
28+
<developer>
29+
<name>Andy Lintner</name>
30+
<email>dev@beowulfe.com</email>
31+
<url>https://github.com/beowulfe</url>
32+
</developer>
33+
</developers>
34+
1035
<dependencies>
1136

1237
<dependency>
@@ -68,14 +93,14 @@
6893
<artifactId>commons-io</artifactId>
6994
<version>2.4</version>
7095
</dependency>
71-
96+
7297
<dependency>
7398
<groupId>junit</groupId>
7499
<artifactId>junit</artifactId>
75100
<version>4.12</version>
76101
<scope>test</scope>
77102
</dependency>
78-
103+
79104
<dependency>
80105
<groupId>org.mockito</groupId>
81106
<artifactId>mockito-all</artifactId>
@@ -96,13 +121,34 @@
96121
<target>1.8</target>
97122
</configuration>
98123
</plugin>
124+
<plugin>
125+
<groupId>org.apache.maven.plugins</groupId>
126+
<artifactId>maven-source-plugin</artifactId>
127+
<version>2.2.1</version>
128+
<executions>
129+
<execution>
130+
<id>attach-sources</id>
131+
<goals>
132+
<goal>jar-no-fork</goal>
133+
</goals>
134+
</execution>
135+
</executions>
136+
</plugin>
99137
<plugin>
100138
<groupId>org.apache.maven.plugins</groupId>
101139
<artifactId>maven-javadoc-plugin</artifactId>
102140
<version>2.10.1</version>
103141
<configuration>
104142
<excludePackageNames>com.beowulfe.hap.impl</excludePackageNames>
105143
</configuration>
144+
<executions>
145+
<execution>
146+
<id>attach-javadocs</id>
147+
<goals>
148+
<goal>jar</goal>
149+
</goals>
150+
</execution>
151+
</executions>
106152
</plugin>
107153
<plugin>
108154
<artifactId>maven-assembly-plugin</artifactId>
@@ -122,12 +168,43 @@
122168
</execution>
123169
</executions>
124170
</plugin>
171+
<plugin>
172+
<groupId>org.apache.maven.plugins</groupId>
173+
<artifactId>maven-gpg-plugin</artifactId>
174+
<version>1.5</version>
175+
<executions>
176+
<execution>
177+
<id>sign-artifacts</id>
178+
<phase>verify</phase>
179+
<goals>
180+
<goal>sign</goal>
181+
</goals>
182+
</execution>
183+
</executions>
184+
</plugin>
185+
<plugin>
186+
<groupId>org.sonatype.plugins</groupId>
187+
<artifactId>nexus-staging-maven-plugin</artifactId>
188+
<version>1.6.3</version>
189+
<extensions>true</extensions>
190+
<configuration>
191+
<serverId>ossrh</serverId>
192+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
193+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
194+
</configuration>
195+
</plugin>
125196
</plugins>
126197
</build>
198+
127199
<distributionManagement>
128200
<site>
129201
<id>website</id>
130202
<url>https://github.com/beowulfe/hap-java</url>
131203
</site>
204+
<snapshotRepository>
205+
<id>ossrh</id>
206+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
207+
</snapshotRepository>
132208
</distributionManagement>
209+
133210
</project>

0 commit comments

Comments
 (0)