Skip to content

Commit e8331df

Browse files
author
lorenzo
committed
code
1 parent 08b72d4 commit e8331df

File tree

1 file changed

+48
-2
lines changed

1 file changed

+48
-2
lines changed

pom.xml

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
<artifactId>module-file</artifactId>
1616

1717
<properties>
18-
<maven.compiler.release>8</maven.compiler.release>
19-
<junit.version>5.5.2</junit.version>
2018
<assertj.version>3.11.1</assertj.version>
19+
<maven.compiler.release>8</maven.compiler.release>
2120
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21+
<junit.version>5.5.2</junit.version>
22+
<jacoco.version>0.8.2</jacoco.version>
2223
</properties>
2324

2425
<dependencies>
@@ -36,4 +37,49 @@
3637
<scope>test</scope>
3738
</dependency>
3839
</dependencies>
40+
41+
<build>
42+
<plugins>
43+
<!-- Copy the artifact into the runtime/modules directory -->
44+
<plugin>
45+
<artifactId>maven-antrun-plugin</artifactId>
46+
<configuration>
47+
<tasks>
48+
<copy file="target/${project.artifactId}-${project.version}.jar"
49+
tofile="../runtime/runtime-launcher/modules/${project.artifactId}-${project.version}.jar">
50+
</copy>
51+
</tasks>
52+
</configuration>
53+
<executions>
54+
<execution>
55+
<phase>install</phase>
56+
<goals>
57+
<goal>run</goal>
58+
</goals>
59+
</execution>
60+
</executions>
61+
</plugin>
62+
63+
<!-- JaCoCo test coverage -->
64+
<plugin>
65+
<groupId>org.jacoco</groupId>
66+
<artifactId>jacoco-maven-plugin</artifactId>
67+
<version>${jacoco.version}</version>
68+
<executions>
69+
<execution>
70+
<goals>
71+
<goal>prepare-agent</goal>
72+
</goals>
73+
</execution>
74+
<execution>
75+
<id>generate-code-coverage-report</id>
76+
<phase>test</phase>
77+
<goals>
78+
<goal>report</goal>
79+
</goals>
80+
</execution>
81+
</executions>
82+
</plugin>
83+
</plugins>
84+
</build>
3985
</project>

0 commit comments

Comments
 (0)