Skip to content

Commit db8fa2a

Browse files
committed
Set version to 1.0.0
+ Also add release profile and supporting plugins.
1 parent c3bf597 commit db8fa2a

File tree

1 file changed

+101
-4
lines changed

1 file changed

+101
-4
lines changed

pom.xml

Lines changed: 101 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,38 @@
2222
~ SOFTWARE.
2323
-->
2424

25-
<project xmlns="http://maven.apache.org/POM/4.0.0"
26-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
27-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25+
<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">
2826

2927
<modelVersion>4.0.0</modelVersion>
3028

3129
<groupId>com.ginsberg</groupId>
3230
<artifactId>java-timestream</artifactId>
3331
<description>A set of builders that create streams of java.time objects</description>
34-
<version>1.0-SNAPSHOT</version>
32+
<url>https://github.com/tginsberg/java-timestream</url>
33+
<version>1.0.0</version>
3534
<packaging>jar</packaging>
3635

36+
<issueManagement>
37+
<url>https://github.com/tginsberg/java-timestream/issues</url>
38+
<system>GitHub Issues</system>
39+
</issueManagement>
40+
41+
<scm>
42+
<url>https://github.com/tginsberg/java-timestream</url>
43+
<connection>scm:git:git://github.com/tginsberg/java-timestream.git</connection>
44+
<developerConnection>scm:git:git@github.com:tginsberg/java-timestream.git</developerConnection>
45+
<tag>HEAD</tag>
46+
</scm>
47+
48+
<developers>
49+
<developer>
50+
<name>Todd Ginsberg</name>
51+
<email>todd@ginsberg.com</email>
52+
<url>https://github.com/tginsberg/</url>
53+
<id>tginsberg</id>
54+
</developer>
55+
</developers>
56+
3757
<licenses>
3858
<license>
3959
<name>MIT License</name>
@@ -47,6 +67,17 @@
4767
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4868
</properties>
4969

70+
<distributionManagement>
71+
<snapshotRepository>
72+
<id>ossrh</id>
73+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
74+
</snapshotRepository>
75+
<repository>
76+
<id>ossrh</id>
77+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
78+
</repository>
79+
</distributionManagement>
80+
5081
<build>
5182
<plugins>
5283
<plugin>
@@ -70,9 +101,75 @@
70101
<goals>deploy</goals>
71102
</configuration>
72103
</plugin>
104+
105+
<plugin>
106+
<groupId>org.sonatype.plugins</groupId>
107+
<artifactId>nexus-staging-maven-plugin</artifactId>
108+
<version>1.6.7</version>
109+
<extensions>true</extensions>
110+
<configuration>
111+
<serverId>ossrh</serverId>
112+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
113+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
114+
</configuration>
115+
</plugin>
116+
73117
</plugins>
74118
</build>
75119

120+
<profiles>
121+
<profile>
122+
<id>release</id>
123+
<build>
124+
<plugins>
125+
<plugin>
126+
<groupId>org.apache.maven.plugins</groupId>
127+
<artifactId>maven-source-plugin</artifactId>
128+
<version>3.0.1</version>
129+
<executions>
130+
<execution>
131+
<id>attach-sources</id>
132+
<goals>
133+
<goal>jar-no-fork</goal>
134+
</goals>
135+
</execution>
136+
</executions>
137+
</plugin>
138+
139+
<plugin>
140+
<groupId>org.apache.maven.plugins</groupId>
141+
<artifactId>maven-javadoc-plugin</artifactId>
142+
<version>2.10.4</version>
143+
<executions>
144+
<execution>
145+
<id>attach-javadocs</id>
146+
<goals>
147+
<goal>jar</goal>
148+
</goals>
149+
</execution>
150+
</executions>
151+
</plugin>
152+
153+
<plugin>
154+
<groupId>org.apache.maven.plugins</groupId>
155+
<artifactId>maven-gpg-plugin</artifactId>
156+
<version>1.6</version>
157+
<executions>
158+
<execution>
159+
<id>sign-artifacts</id>
160+
<phase>verify</phase>
161+
<goals>
162+
<goal>sign</goal>
163+
</goals>
164+
</execution>
165+
</executions>
166+
</plugin>
167+
168+
</plugins>
169+
</build>
170+
</profile>
171+
</profiles>
172+
76173
<dependencies>
77174
<!-- Test dependencies -->
78175
<dependency>

0 commit comments

Comments
 (0)