Skip to content

Commit b749958

Browse files
committed
fix pom.xml
1 parent 5a2f147 commit b749958

2 files changed

Lines changed: 59 additions & 1 deletion

File tree

code_to_optimize/java/pom.xml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@
3939
<version>3.42.0.0</version>
4040
<scope>test</scope>
4141
</dependency>
42+
<dependency>
43+
<groupId>com.codeflash</groupId>
44+
<artifactId>codeflash-runtime</artifactId>
45+
<version>1.0.0</version>
46+
<scope>test</scope>
47+
</dependency>
4248
</dependencies>
4349

4450
<build>
@@ -62,6 +68,33 @@
6268
</includes>
6369
</configuration>
6470
</plugin>
65-
</plugins>
71+
72+
<plugin>
73+
<groupId>org.jacoco</groupId>
74+
<artifactId>jacoco-maven-plugin</artifactId>
75+
<version>0.8.11</version>
76+
<executions>
77+
<execution>
78+
<id>prepare-agent</id>
79+
<goals>
80+
<goal>prepare-agent</goal>
81+
</goals>
82+
</execution>
83+
<execution>
84+
<id>report</id>
85+
<phase>verify</phase>
86+
<goals>
87+
<goal>report</goal>
88+
</goals>
89+
<configuration>
90+
<!-- For multi-module projects, include dependency classes -->
91+
<includes>
92+
<include>**/*.class</include>
93+
</includes>
94+
</configuration>
95+
</execution>
96+
</executions>
97+
</plugin>
98+
</plugins>
6699
</build>
67100
</project>

codeflash-java-runtime/pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@
2727
<version>2.10.1</version>
2828
</dependency>
2929

30+
<!-- Kryo for fast serialization -->
31+
<dependency>
32+
<groupId>com.esotericsoftware</groupId>
33+
<artifactId>kryo</artifactId>
34+
<version>5.6.2</version>
35+
</dependency>
36+
37+
<!-- Objenesis for instantiation strategies -->
38+
<dependency>
39+
<groupId>org.objenesis</groupId>
40+
<artifactId>objenesis</artifactId>
41+
<version>3.4</version>
42+
</dependency>
43+
3044
<!-- SQLite JDBC driver -->
3145
<dependency>
3246
<groupId>org.xerial</groupId>
@@ -61,6 +75,17 @@
6175
<groupId>org.apache.maven.plugins</groupId>
6276
<artifactId>maven-surefire-plugin</artifactId>
6377
<version>3.0.0</version>
78+
<configuration>
79+
<argLine>
80+
--add-opens java.base/java.util=ALL-UNNAMED
81+
--add-opens java.base/java.lang=ALL-UNNAMED
82+
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
83+
--add-opens java.base/java.math=ALL-UNNAMED
84+
--add-opens java.base/java.io=ALL-UNNAMED
85+
--add-opens java.base/java.net=ALL-UNNAMED
86+
--add-opens java.base/java.time=ALL-UNNAMED
87+
</argLine>
88+
</configuration>
6489
</plugin>
6590

6691
<!-- Create JAR with dependencies -->

0 commit comments

Comments
 (0)