Skip to content

Commit 05375e7

Browse files
committed
set revision 2.1.0-alpha
1 parent 21266fb commit 05375e7

File tree

1 file changed

+102
-2
lines changed

1 file changed

+102
-2
lines changed

pom.xml

Lines changed: 102 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<parent>
88
<groupId>de.codecentric.reedelk</groupId>
99
<artifactId>module-parent</artifactId>
10-
<version>2.0.0</version>
10+
<version>2.1.0-alpha</version>
1111
</parent>
1212

1313
<packaging>bundle</packaging>
14-
<version>2.0.0</version>
14+
<version>2.1.0-alpha</version>
1515
<artifactId>module-file</artifactId>
1616

1717
<properties>
@@ -20,6 +20,14 @@
2020
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2121
<junit.version>5.5.2</junit.version>
2222
<jacoco.version>0.8.2</jacoco.version>
23+
24+
<!-- Maven Central Release tools -->
25+
<versions-maven-plugin.version>2.8.1</versions-maven-plugin.version>
26+
<maven-deploy-plugin.version>3.0.0-M1</maven-deploy-plugin.version>
27+
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
28+
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
29+
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
30+
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
2331
</properties>
2432

2533
<dependencies>
@@ -82,4 +90,96 @@
8290
</plugin>
8391
</plugins>
8492
</build>
93+
<profiles>
94+
<!-- plugins needed to deploy to Maven Central -->
95+
<profile>
96+
<id>central-deploy</id>
97+
<build>
98+
<plugins>
99+
<plugin>
100+
<artifactId>maven-gpg-plugin</artifactId>
101+
<version>${maven-gpg-plugin.version}</version>
102+
<executions>
103+
<execution>
104+
<id>sign-artifacts</id>
105+
<phase>verify</phase>
106+
<goals>
107+
<goal>sign</goal>
108+
</goals>
109+
<configuration>
110+
<!-- This is necessary for gpg to not try to use the pinentry programs -->
111+
<gpgArguments>
112+
<arg>--pinentry-mode</arg>
113+
<arg>loopback</arg>
114+
</gpgArguments>
115+
</configuration>
116+
</execution>
117+
</executions>
118+
</plugin>
119+
<plugin>
120+
<groupId>org.codehaus.mojo</groupId>
121+
<artifactId>versions-maven-plugin</artifactId>
122+
<version>${versions-maven-plugin.version}</version>
123+
<configuration>
124+
<generateBackupPoms>false</generateBackupPoms>
125+
</configuration>
126+
</plugin>
127+
<plugin>
128+
<artifactId>maven-deploy-plugin</artifactId>
129+
<version>${maven-deploy-plugin.version}</version>
130+
<configuration>
131+
<skip>true</skip>
132+
</configuration>
133+
</plugin>
134+
<plugin>
135+
<groupId>org.apache.maven.plugins</groupId>
136+
<artifactId>maven-source-plugin</artifactId>
137+
<version>${maven-source-plugin.version}</version>
138+
<executions>
139+
<execution>
140+
<id>attach-sources</id>
141+
<goals>
142+
<goal>jar</goal>
143+
</goals>
144+
</execution>
145+
</executions>
146+
</plugin>
147+
<plugin>
148+
<groupId>org.apache.maven.plugins</groupId>
149+
<artifactId>maven-javadoc-plugin</artifactId>
150+
<version>${maven-javadoc-plugin.version}</version>
151+
<executions>
152+
<execution>
153+
<id>attach-javadocs</id>
154+
<goals>
155+
<goal>jar</goal>
156+
</goals>
157+
</execution>
158+
</executions>
159+
</plugin>
160+
<plugin>
161+
<groupId>org.sonatype.plugins</groupId>
162+
<artifactId>nexus-staging-maven-plugin</artifactId>
163+
<version>${nexus-staging-maven-plugin.version}</version>
164+
<extensions>true</extensions>
165+
<configuration>
166+
<serverId>oss.sonatype.org</serverId>
167+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
168+
<description>${project.version}</description>
169+
</configuration>
170+
<executions>
171+
<execution>
172+
<id>deploy-to-sonatype</id>
173+
<phase>deploy</phase>
174+
<goals>
175+
<goal>deploy</goal>
176+
<goal>release</goal>
177+
</goals>
178+
</execution>
179+
</executions>
180+
</plugin>
181+
</plugins>
182+
</build>
183+
</profile>
184+
</profiles>
85185
</project>

0 commit comments

Comments
 (0)