Skip to content

Commit 75a149c

Browse files
committed
🔧 Mise à jour config JaCoco
1 parent 1ed5e76 commit 75a149c

File tree

1 file changed

+67
-51
lines changed

1 file changed

+67
-51
lines changed

pom.xml

Lines changed: 67 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@
4747
</dependency>
4848
</dependencies>
4949

50+
<licenses>
51+
<license>
52+
<name>MIT License</name>
53+
<url>http://www.opensource.org/licenses/mit-license.php</url>
54+
</license>
55+
</licenses>
56+
5057
<developers>
5158
<developer>
5259
<name>Emerick BIRON</name>
@@ -80,6 +87,57 @@
8087
</repository>
8188
</distributionManagement>
8289

90+
91+
<profiles>
92+
<profile>
93+
<id>release</id>
94+
<build>
95+
<plugins>
96+
<plugin>
97+
<groupId>org.apache.maven.plugins</groupId>
98+
<artifactId>maven-source-plugin</artifactId>
99+
<version>3.2.1</version>
100+
<executions>
101+
<execution>
102+
<id>attach-sources</id>
103+
<goals>
104+
<goal>jar</goal>
105+
</goals>
106+
</execution>
107+
</executions>
108+
</plugin>
109+
<plugin>
110+
<groupId>org.apache.maven.plugins</groupId>
111+
<artifactId>maven-javadoc-plugin</artifactId>
112+
<version>3.0.1</version>
113+
<executions>
114+
<execution>
115+
<id>attach-javadocs</id>
116+
<goals>
117+
<goal>jar</goal>
118+
</goals>
119+
</execution>
120+
</executions>
121+
</plugin>
122+
<plugin>
123+
<groupId>org.apache.maven.plugins</groupId>
124+
<artifactId>maven-gpg-plugin</artifactId>
125+
<version>1.6</version>
126+
<executions>
127+
<execution>
128+
<id>sign-artifacts</id>
129+
<phase>verify</phase>
130+
<goals>
131+
<goal>sign</goal>
132+
</goals>
133+
</execution>
134+
</executions>
135+
</plugin>
136+
</plugins>
137+
</build>
138+
</profile>
139+
</profiles>
140+
83141
<build>
84142
<plugins>
85143
<plugin>
@@ -101,29 +159,10 @@
101159
<target>11</target>
102160
</configuration>
103161
</plugin>
104-
<plugin>
105-
<groupId>org.jacoco</groupId>
106-
<artifactId>jacoco-maven-plugin</artifactId>
107-
<version>0.8.6</version>
108-
<executions>
109-
<execution>
110-
<goals>
111-
<goal>prepare-agent</goal>
112-
</goals>
113-
</execution>
114-
<execution>
115-
<id>report</id>
116-
<phase>test</phase>
117-
<goals>
118-
<goal>report</goal>
119-
</goals>
120-
</execution>
121-
</executions>
122-
</plugin>
123162
<plugin>
124163
<groupId>org.sonatype.plugins</groupId>
125164
<artifactId>nexus-staging-maven-plugin</artifactId>
126-
<version>1.6.7</version>
165+
<version>1.6.8</version>
127166
<extensions>true</extensions>
128167
<configuration>
129168
<serverId>ossrh</serverId>
@@ -132,47 +171,24 @@
132171
</configuration>
133172
</plugin>
134173
<plugin>
135-
<groupId>org.apache.maven.plugins</groupId>
136-
<artifactId>maven-source-plugin</artifactId>
137-
<version>3.2.1</version>
138-
<executions>
139-
<execution>
140-
<id>attach-sources</id>
141-
<goals>
142-
<goal>jar-no-fork</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>3.0.1</version>
174+
<groupId>org.jacoco</groupId>
175+
<artifactId>jacoco-maven-plugin</artifactId>
176+
<version>0.8.6</version>
151177
<executions>
152178
<execution>
153-
<id>attach-javadocs</id>
179+
<id>default-prepare-agent</id>
154180
<goals>
155-
<goal>jar</goal>
181+
<goal>prepare-agent</goal>
156182
</goals>
157183
</execution>
158-
</executions>
159-
</plugin>
160-
<plugin>
161-
<groupId>org.apache.maven.plugins</groupId>
162-
<artifactId>maven-gpg-plugin</artifactId>
163-
<version>1.6</version>
164-
<executions>
165184
<execution>
166-
<id>sign-artifacts</id>
167-
<phase>verify</phase>
185+
<id>default-report</id>
186+
<phase>prepare-package</phase>
168187
<goals>
169-
<goal>sign</goal>
188+
<goal>report</goal>
170189
</goals>
171190
</execution>
172191
</executions>
173-
<configuration>
174-
<skip>true</skip>
175-
</configuration>
176192
</plugin>
177193
</plugins>
178194
</build>

0 commit comments

Comments
 (0)