Skip to content

Commit 149a87a

Browse files
committed
Enable easy-jacoco for project
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
1 parent 7cff037 commit 149a87a

File tree

3 files changed

+69
-15
lines changed

3 files changed

+69
-15
lines changed

.mvn/extensions.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright 2012-2024 The Feign Authors
5+
6+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
7+
in compliance with the License. You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software distributed under the License
12+
is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13+
or implied. See the License for the specific language governing permissions and limitations under
14+
the License.
15+
16+
-->
17+
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18+
xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
19+
<extension>
20+
<groupId>com.marvinformatics.jacoco</groupId>
21+
<artifactId>easy-jacoco-maven-plugin</artifactId>
22+
<version>0.1.3</version>
23+
</extension>
24+
</extensions>

pom.xml

Lines changed: 44 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
<osgi.import.package.root>*</osgi.import.package.root>
156156
<osgi.import.package>${osgi.import.package.root}</osgi.import.package>
157157

158+
<jacoco.propertyName>jacocoArgLine</jacoco.propertyName>
158159
</properties>
159160

160161
<dependencyManagement>
@@ -363,7 +364,7 @@
363364
<artifactId>maven-surefire-plugin</artifactId>
364365
<version>${surefire.version}</version>
365366
<configuration>
366-
<argLine>--add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.management/javax.management=ALL-UNNAMED --add-opens=java.naming/javax.naming=ALL-UNNAMED</argLine>
367+
<argLine>${jacocoArgLine} --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.management/javax.management=ALL-UNNAMED --add-opens=java.naming/javax.naming=ALL-UNNAMED</argLine>
367368
<environmentVariables>
368369
<TZ>UTC</TZ>
369370
</environmentVariables>
@@ -484,19 +485,7 @@
484485
<outputDirectory>../target/dist</outputDirectory>
485486
</configuration>
486487
</plugin>
487-
<plugin>
488-
<groupId>org.jacoco</groupId>
489-
<artifactId>jacoco-maven-plugin</artifactId>
490-
<version>0.8.13</version>
491-
<executions>
492-
<execution>
493-
<id>prepare-agent</id>
494-
<goals>
495-
<goal>prepare-agent</goal>
496-
</goals>
497-
</execution>
498-
</executions>
499-
</plugin>
488+
500489
<plugin>
501490
<groupId>org.apache.maven.plugins</groupId>
502491
<artifactId>maven-compiler-plugin</artifactId>
@@ -553,6 +542,46 @@
553542
</configuration>
554543
</plugin>
555544

545+
<plugin>
546+
<groupId>org.jacoco</groupId>
547+
<artifactId>jacoco-maven-plugin</artifactId>
548+
<version>0.8.13</version>
549+
<configuration>
550+
<includes>
551+
<include>com/querydsl/**</include>
552+
</includes>
553+
</configuration>
554+
</plugin>
555+
<plugin>
556+
<groupId>com.marvinformatics.jacoco</groupId>
557+
<artifactId>easy-jacoco-maven-plugin</artifactId>
558+
<version>0.1.3</version>
559+
<configuration>
560+
<projectRules>
561+
<rule>
562+
<limits>
563+
<limit>
564+
<counter>INSTRUCTION</counter>
565+
<value>COVEREDRATIO</value>
566+
<minimum>0.70</minimum>
567+
</limit>
568+
</limits>
569+
</rule>
570+
</projectRules>
571+
<haltOnFailure>true</haltOnFailure>
572+
<projectExtraProperties>
573+
<enforcer.skip>true</enforcer.skip>
574+
<license.skip>true</license.skip>
575+
</projectExtraProperties>
576+
<includes>
577+
<include>com/querydsl/**</include>
578+
</includes>
579+
<excludeModules>
580+
<excludeModule>querydsl-scala</excludeModule>
581+
</excludeModules>
582+
</configuration>
583+
</plugin>
584+
556585
<plugin>
557586
<groupId>org.apache.maven.plugins</groupId>
558587
<artifactId>maven-scm-plugin</artifactId>
@@ -765,6 +794,7 @@
765794
<animal.sniffer.skip>true</animal.sniffer.skip>
766795
<japicmp.skip>true</japicmp.skip>
767796
<maven.javadoc.skip>true</maven.javadoc.skip>
797+
<easy-jacoco.skip>true</easy-jacoco.skip>
768798
</properties>
769799
</profile>
770800

querydsl-libraries/querydsl-scala/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@
155155
<artifactId>scala-maven-plugin</artifactId>
156156
<version>4.9.5</version>
157157
<configuration>
158-
<charset>${character.encoding}</charset>
159158
<scalaVersion>${scala.version}</scalaVersion>
159+
160160
<args>
161161
<arg>-encoding</arg>
162162
<arg>${character.encoding}</arg>

0 commit comments

Comments
 (0)