Skip to content

Commit f8889b1

Browse files
committed
rework pom.xml
1 parent 414e0e1 commit f8889b1

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

pom.xml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@
154154
<groupId>org.jacoco</groupId>
155155
<artifactId>jacoco-maven-plugin</artifactId>
156156
<version>0.8.10</version>
157-
<configuration>
158-
<output>file</output>
159-
<append>false</append>
160-
</configuration>
161157
<executions>
162158
<execution>
163159
<id>prepare-agent</id>
@@ -167,7 +163,6 @@
167163
</execution>
168164
<execution>
169165
<id>report</id>
170-
<phase>test</phase>
171166
<goals>
172167
<goal>report</goal>
173168
</goals>
@@ -184,6 +179,7 @@
184179
<pluginClass>fr.greencodeinitiative.python.PythonPlugin</pluginClass>
185180
<sonarLintSupported>true</sonarLintSupported>
186181
<pluginApiMinVersion>${sonarqube.version}</pluginApiMinVersion>
182+
<skipDependenciesPackaging>true</skipDependenciesPackaging>
187183
<jreMinVersion>${java.version}</jreMinVersion>
188184
<archive>
189185
<manifestEntries>
@@ -204,29 +200,30 @@
204200
<goal>shade</goal>
205201
</goals>
206202
<configuration>
203+
<shadedArtifactAttached>false</shadedArtifactAttached>
204+
<minimizeJar>true</minimizeJar>
205+
<createDependencyReducedPom>false</createDependencyReducedPom>
207206
<filters>
208207
<filter>
209-
<artifact>commons-*:*</artifact>
208+
<artifact>org.sonarsource.analyzer-commons:sonar-analyzer-commons:*</artifact>
210209
<excludes>
211210
<exclude>META-INF/**</exclude>
212211
</excludes>
213212
</filter>
214213
<filter>
215-
<artifact>org.*:*</artifact>
214+
<artifact>org.glassfish:jakarta.json:*</artifact>
216215
<excludes>
217216
<exclude>META-INF/**</exclude>
218-
<exclude>org/sonar/api/batch/sensor/**</exclude>
219-
<exclude>javax/annotation/**</exclude>
220217
</excludes>
221218
</filter>
222219
<filter>
223-
<artifact>com.*:*</artifact>
220+
<artifact>jakarta.json:jakarta.json-api:*</artifact>
224221
<excludes>
225222
<exclude>META-INF/**</exclude>
226223
</excludes>
227224
</filter>
228225
<filter>
229-
<artifact>junit:*</artifact>
226+
<artifact>io.ecocode:ecocode-rules-specifications:*</artifact>
230227
<excludes>
231228
<exclude>META-INF/**</exclude>
232229
</excludes>

0 commit comments

Comments
 (0)