Skip to content

Commit 9482f53

Browse files
committed
Preparing pom.xml for publishing to Maven Central repo
1 parent faeba4d commit 9482f53

File tree

1 file changed

+123
-2
lines changed

1 file changed

+123
-2
lines changed

pom.xml

Lines changed: 123 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,58 @@
88
<artifactId>jacoco-aggregate-submodule</artifactId>
99
<version>1.0.0</version>
1010

11+
<packaging>maven-plugin</packaging>
12+
13+
<name>jacoco-aggregate-submodule</name>
14+
<description>Jacoco Maven plugin to fill the gap of the official one that doesn't ease submodules code coverage</description>
15+
<url>https://github.com/codefilarete/jacoco-aggregate-submodule</url>
16+
17+
<organization>
18+
<name>Codefilarete</name>
19+
<url>https://www.codefilarete.org</url>
20+
</organization>
21+
22+
<developers>
23+
<developer>
24+
<name>Guillaume Mary</name>
25+
<email>codefilarete@gmail.com</email>
26+
<organization>Codefilarete</organization>
27+
<organizationUrl>https://www.codefilarete.org</organizationUrl>
28+
</developer>
29+
</developers>
30+
31+
<licenses>
32+
<license>
33+
<name>MIT License</name>
34+
<url>https://choosealicense.com/licenses/mit/</url>
35+
<distribution>repo</distribution>
36+
</license>
37+
</licenses>
38+
39+
<scm>
40+
<connection>scm:git:https://github.com/codefilarete/jacoco-aggregate-submodule.git</connection>
41+
<developerConnection>scm:git:ssh://git@github.com/codefilarete/jacoco-aggregate-submodule.git</developerConnection>
42+
<url>https://github.com/codefilarete/jacoco-aggregate-submodule.git</url>
43+
<tag>HEAD</tag>
44+
</scm>
45+
46+
<distributionManagement>
47+
<repository>
48+
<id>ossrh</id>
49+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
50+
</repository>
51+
<snapshotRepository>
52+
<id>snapshots</id>
53+
<url>https://codefilarete.jfrog.io/artifactory/default-maven-virtual/</url>
54+
</snapshotRepository>
55+
</distributionManagement>
56+
1157
<properties>
1258
<maven.compiler.source>8</maven.compiler.source>
1359
<maven.compiler.target>8</maven.compiler.target>
1460
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1561
</properties>
1662

17-
<packaging>maven-plugin</packaging>
18-
1963
<prerequisites>
2064
<maven>3.0</maven>
2165
</prerequisites>
@@ -64,4 +108,81 @@
64108
</plugin>
65109
</plugins>
66110
</build>
111+
112+
<profiles>
113+
<profile>
114+
<id>release</id>
115+
<build>
116+
<plugins>
117+
<plugin>
118+
<groupId>org.apache.maven.plugins</groupId>
119+
<artifactId>maven-source-plugin</artifactId>
120+
<version>2.2.1</version>
121+
<executions>
122+
<execution>
123+
<id>attach-sources</id>
124+
<goals>
125+
<goal>jar-no-fork</goal>
126+
</goals>
127+
</execution>
128+
</executions>
129+
</plugin>
130+
<plugin>
131+
<groupId>org.apache.maven.plugins</groupId>
132+
<artifactId>maven-javadoc-plugin</artifactId>
133+
<version>3.1.1</version>
134+
<configuration>
135+
<failOnError>false</failOnError>
136+
<doclint>none</doclint>
137+
</configuration>
138+
<executions>
139+
<execution>
140+
<id>attach-javadocs</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-release-plugin</artifactId>
150+
<version>2.5.3</version>
151+
<configuration>
152+
<autoVersionSubmodules>true</autoVersionSubmodules>
153+
<useReleaseProfile>false</useReleaseProfile>
154+
<releaseProfiles>release</releaseProfiles>
155+
<goals>deploy</goals>
156+
</configuration>
157+
</plugin>
158+
159+
<plugin>
160+
<groupId>org.apache.maven.plugins</groupId>
161+
<artifactId>maven-gpg-plugin</artifactId>
162+
<version>3.0.1</version>
163+
<executions>
164+
<execution>
165+
<id>sign-artifacts</id>
166+
<phase>verify</phase>
167+
<goals>
168+
<goal>sign</goal>
169+
</goals>
170+
</execution>
171+
</executions>
172+
</plugin>
173+
<plugin>
174+
<groupId>org.sonatype.plugins</groupId>
175+
<artifactId>nexus-staging-maven-plugin</artifactId>
176+
<version>1.6.7</version>
177+
<extensions>true</extensions>
178+
<configuration>
179+
<serverId>ossrh</serverId>
180+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
181+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
182+
</configuration>
183+
</plugin>
184+
</plugins>
185+
</build>
186+
</profile>
187+
</profiles>
67188
</project>

0 commit comments

Comments
 (0)