Skip to content

Commit 21e4380

Browse files
author
Ben Romberg
committed
prepare pom for maven central release
1 parent 2a3791a commit 21e4380

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed

pom.xml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,41 @@
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

6+
<parent>
7+
<groupId>org.sonatype.oss</groupId>
8+
<artifactId>oss-parent</artifactId>
9+
<version>7</version>
10+
</parent>
11+
612
<groupId>de.andrena.tools.nopackagecycles</groupId>
713
<artifactId>no-package-cycles-enforcer-rule</artifactId>
814
<version>1.0.0-SNAPSHOT</version>
15+
<packaging>jar</packaging>
16+
17+
<name>NoPackageCyclesEnforcerRule</name>
18+
<description>A rule for the maven-enforcer-plugin that detects and prevents package cycles.</description>
19+
20+
<url>https://github.com/andrena/no-package-cycles-enforcer-rule</url>
21+
<scm>
22+
<connection>scm:git:git@github.com:andrena/no-package-cycles-enforcer-rule.git</connection>
23+
<developerConnection>scm:git:git@github.com:andrena/no-package-cycles-enforcer-rule.git</developerConnection>
24+
<url>git@github.com:andrena/no-package-cycles-enforcer-rule.git</url>
25+
</scm>
26+
27+
<licenses>
28+
<license>
29+
<name>Apache License 2.0</name>
30+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
31+
<distribution>repo</distribution>
32+
</license>
33+
</licenses>
34+
35+
<developers>
36+
<developer>
37+
<name>Ben Romberg</name>
38+
<organization>andrena objects ag</organization>
39+
</developer>
40+
</developers>
941

1042
<properties>
1143
<api.version>1.0</api.version>
@@ -22,6 +54,30 @@
2254
<target>1.5</target>
2355
</configuration>
2456
</plugin>
57+
<plugin>
58+
<groupId>org.apache.maven.plugins</groupId>
59+
<artifactId>maven-source-plugin</artifactId>
60+
<executions>
61+
<execution>
62+
<id>attach-sources</id>
63+
<goals>
64+
<goal>jar</goal>
65+
</goals>
66+
</execution>
67+
</executions>
68+
</plugin>
69+
<plugin>
70+
<groupId>org.apache.maven.plugins</groupId>
71+
<artifactId>maven-javadoc-plugin</artifactId>
72+
<executions>
73+
<execution>
74+
<id>attach-javadocs</id>
75+
<goals>
76+
<goal>jar</goal>
77+
</goals>
78+
</execution>
79+
</executions>
80+
</plugin>
2581
</plugins>
2682
</build>
2783

@@ -75,4 +131,34 @@
75131
<scope>test</scope>
76132
</dependency>
77133
</dependencies>
134+
135+
<profiles>
136+
<profile>
137+
<id>release-sign-artifacts</id>
138+
<activation>
139+
<property>
140+
<name>performRelease</name>
141+
<value>true</value>
142+
</property>
143+
</activation>
144+
<build>
145+
<plugins>
146+
<plugin>
147+
<groupId>org.apache.maven.plugins</groupId>
148+
<artifactId>maven-gpg-plugin</artifactId>
149+
<version>1.1</version>
150+
<executions>
151+
<execution>
152+
<id>sign-artifacts</id>
153+
<phase>verify</phase>
154+
<goals>
155+
<goal>sign</goal>
156+
</goals>
157+
</execution>
158+
</executions>
159+
</plugin>
160+
</plugins>
161+
</build>
162+
</profile>
163+
</profiles>
78164
</project>

0 commit comments

Comments
 (0)