|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
3 | 4 | <modelVersion>4.0.0</modelVersion> |
4 | 5 | <groupId>org.cryptomator</groupId> |
5 | 6 | <artifactId>siv-mode</artifactId> |
6 | | - <version>1.7.0-SNAPSHOT</version> |
| 7 | + <version>2.0.0-SNAPSHOT</version> |
7 | 8 |
|
8 | 9 | <name>SIV Mode</name> |
9 | 10 | <description>RFC 5297 SIV mode: deterministic authenticated encryption</description> |
|
37 | 38 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
38 | 39 | <project.build.outputTimestamp>2025-03-14T12:02:43Z</project.build.outputTimestamp> |
39 | 40 |
|
40 | | - <!-- dependencies --> |
41 | | - <bouncycastle.version>1.82</bouncycastle.version> |
42 | | - |
43 | 41 | <!-- test dependencies --> |
44 | 42 | <junit.version>6.0.1</junit.version> |
45 | 43 | <mockito.version>5.20.0</mockito.version> |
|
49 | 47 |
|
50 | 48 | <!-- maven plugins --> |
51 | 49 | <dependency-check.version>12.1.8</dependency-check.version> |
| 50 | + |
| 51 | + <!-- Property used by surefire to determine jacoco engine --> |
| 52 | + <surefire.jacoco.args/> |
52 | 53 | </properties> |
53 | 54 |
|
54 | 55 | <dependencies> |
55 | | - <dependency> |
56 | | - <groupId>org.bouncycastle</groupId> |
57 | | - <artifactId>bcprov-jdk18on</artifactId> |
58 | | - <version>${bouncycastle.version}</version> |
59 | | - <!-- see maven-shade-plugin; we don't want this as a transitive dependency in other projects --> |
60 | | - <optional>true</optional> |
61 | | - </dependency> |
62 | | - <dependency> |
63 | | - <groupId>org.jetbrains</groupId> |
64 | | - <artifactId>annotations</artifactId> |
65 | | - <version>26.0.2-1</version> |
66 | | - <scope>provided</scope> |
67 | | - </dependency> |
68 | | - |
69 | 56 | <!-- Tests --> |
70 | 57 | <dependency> |
71 | 58 | <groupId>org.junit.jupiter</groupId> |
|
134 | 121 | </execution> |
135 | 122 | </executions> |
136 | 123 | </plugin> |
| 124 | + <plugin> |
| 125 | + <groupId>org.apache.maven.plugins</groupId> |
| 126 | + <artifactId>maven-dependency-plugin</artifactId> |
| 127 | + <executions> |
| 128 | + <execution> |
| 129 | + <id>jar-paths-to-properties</id> |
| 130 | + <phase>validate</phase> |
| 131 | + <goals> |
| 132 | + <goal>properties</goal> |
| 133 | + </goals> |
| 134 | + </execution> |
| 135 | + </executions> |
| 136 | + </plugin> |
137 | 137 | <plugin> |
138 | 138 | <artifactId>maven-compiler-plugin</artifactId> |
139 | 139 | <version>3.14.1</version> |
140 | 140 | <configuration> |
141 | 141 | <release>8</release> |
142 | 142 | <encoding>UTF-8</encoding> |
143 | 143 | <showWarnings>true</showWarnings> |
| 144 | + <annotationProcessorPaths> |
| 145 | + <path> |
| 146 | + <groupId>org.openjdk.jmh</groupId> |
| 147 | + <artifactId>jmh-generator-annprocess</artifactId> |
| 148 | + <version>${jmh.version}</version> |
| 149 | + </path> |
| 150 | + </annotationProcessorPaths> |
144 | 151 | </configuration> |
145 | 152 | <executions> |
146 | 153 | <execution> |
|
163 | 170 | <groupId>org.apache.maven.plugins</groupId> |
164 | 171 | <artifactId>maven-surefire-plugin</artifactId> |
165 | 172 | <version>3.5.4</version> |
| 173 | + <configuration> |
| 174 | + <argLine>@{surefire.jacoco.args} -javaagent:${org.mockito:mockito-core:jar}</argLine> |
| 175 | + </configuration> |
166 | 176 | </plugin> |
167 | 177 | <plugin> |
168 | 178 | <artifactId>maven-jar-plugin</artifactId> |
|
208 | 218 | <release>8</release> |
209 | 219 | </configuration> |
210 | 220 | </plugin> |
211 | | - <plugin> |
212 | | - <artifactId>maven-shade-plugin</artifactId> |
213 | | - <version>3.6.1</version> |
214 | | - <executions> |
215 | | - <execution> |
216 | | - <phase>package</phase> |
217 | | - <goals> |
218 | | - <goal>shade</goal> |
219 | | - </goals> |
220 | | - <configuration> |
221 | | - <minimizeJar>true</minimizeJar> |
222 | | - <keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope> |
223 | | - <createDependencyReducedPom>false</createDependencyReducedPom> |
224 | | - <createSourcesJar>false</createSourcesJar> |
225 | | - <artifactSet> |
226 | | - <includes> |
227 | | - <include>org.bouncycastle:bcprov-jdk18on</include> |
228 | | - </includes> |
229 | | - </artifactSet> |
230 | | - <relocations> |
231 | | - <relocation> |
232 | | - <pattern>org.bouncycastle</pattern> |
233 | | - <shadedPattern>org.cryptomator.siv.org.bouncycastle</shadedPattern> |
234 | | - </relocation> |
235 | | - </relocations> |
236 | | - <filters> |
237 | | - <filter> |
238 | | - <artifact>org.bouncycastle:bcprov-jdk18on</artifact> |
239 | | - <excludes> |
240 | | - <exclude>META-INF/**</exclude> |
241 | | - </excludes> |
242 | | - </filter> |
243 | | - </filters> |
244 | | - </configuration> |
245 | | - </execution> |
246 | | - </executions> |
247 | | - </plugin> |
248 | 221 | </plugins> |
249 | 222 | </build> |
250 | 223 |
|
|
292 | 265 | <goals> |
293 | 266 | <goal>prepare-agent</goal> |
294 | 267 | </goals> |
| 268 | + <configuration> |
| 269 | + <propertyName>surefire.jacoco.args</propertyName> |
| 270 | + </configuration> |
295 | 271 | </execution> |
296 | 272 | </executions> |
297 | 273 | <!-- workaround for https://github.com/jacoco/jacoco/issues/407 --> |
|
353 | 329 | <extensions>true</extensions> |
354 | 330 | <configuration> |
355 | 331 | <publishingServerId>central</publishingServerId> |
356 | | - <autoPublish>true</autoPublish> |
| 332 | + <autoPublish>true</autoPublish> |
357 | 333 | </configuration> |
358 | 334 | </plugin> |
359 | 335 | </plugins> |
|
0 commit comments