This repository has been archived by the owner on Jul 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
288 lines (250 loc) · 9.28 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>io.ascopes.katana</groupId>
<artifactId>katana-parent</artifactId>
<version>0.1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>katana-compiler-testing-parent</module>
<module>katana-spi-parent</module>
</modules>
<properties>
<!-- External dependencies -->
<assertj.version>5.7</assertj.version>
<fuzzywuzzy.version>1.3.3</fuzzywuzzy.version>
<javaparser.version>3.24.0</javaparser.version>
<jimfs.version>1.2</jimfs.version>
<junit.version>5.8.2</junit.version>
<kotlin.version>1.6.10</kotlin.version>
<kotlin-logging.version>2.1.21</kotlin-logging.version>
<logback.version>1.2.10</logback.version>
<mockk.version>1.12.2</mockk.version>
<opentest4j.version>1.2.0</opentest4j.version>
<!-- Standard Maven plugins -->
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
<!-- Third-party plugins -->
<build-helper-maven-plugin.version>3.3.0</build-helper-maven-plugin.version>
<jacoco-maven-plugin.version>0.8.7</jacoco-maven-plugin.version>
<!-- JDK/Kotlin versions -->
<java-api-version>11</java-api-version>
<kotlin-api-version>1.6</kotlin-api-version>
<!-- Source directories -->
<java-sources-dir>${project.basedir}/src/main/java</java-sources-dir>
<kotlin-sources-dir>${project.basedir}/src/main/kotlin</kotlin-sources-dir>
<java-tests-dir>${project.basedir}/src/test/java</java-tests-dir>
<kotlin-tests-dir>${project.basedir}/src/test/kotlin</kotlin-tests-dir>
<!-- Compiler flags -->
<kotlin.compiler.apiVersion>${kotlin-api-version}</kotlin.compiler.apiVersion>
<kotlin.compiler.incremental>false</kotlin.compiler.incremental>
<kotlin.compiler.jvmTarget>${java-api-version}</kotlin.compiler.jvmTarget>
<kotlin.compiler.languageVersion>${kotlin-api-version}</kotlin.compiler.languageVersion>
<!--
This argument is pulled in by Surefire, and JaCoCo will amend it to ensure the
coverage agent is installed into the forked JVM running the tests. See
https://www.eclemma.org/jacoco/trunk/doc/prepare-agent-mojo.html for info.
We also disable code sharing to prevent some other warnings during test runs.
-->
<argLine>-Xshare:off</argLine>
<!-- Project flags -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>com.google.jimfs</groupId>
<artifactId>jimfs</artifactId>
<version>${jimfs.version}</version>
</dependency>
<dependency>
<groupId>io.github.microutils</groupId>
<artifactId>kotlin-logging-jvm</artifactId>
<version>${kotlin-logging.version}</version>
</dependency>
<dependency>
<groupId>io.mockk</groupId>
<artifactId>mockk</artifactId>
<version>${mockk.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
</exclusion>
<exclusion>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-reflect</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>me.xdrop</groupId>
<artifactId>fuzzywuzzy</artifactId>
<version>${fuzzywuzzy.version}</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-bom</artifactId>
<version>${kotlin.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.opentest4j</groupId>
<artifactId>opentest4j</artifactId>
<version>${opentest4j.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-maven-plugin.version}</version>
<executions>
<execution>
<!--
This is needed in order for JaCoCo to detect and annotate
Kotlin sources correctly in the coverage report. No idea
why we even need to do this, since I would hope it would
handle Kotlin properly by default given that it supports
it.
-->
<id>add-kotlin-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${kotlin-sources-dir}</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<id>prepare-jacoco-unittest-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report-jacoco-unittest-coverage</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<version>${kotlin.version}</version>
<configuration>
<args>
<!-- Enable strict mode for JSR-305 annotations -->
<arg>-Xjsr305=strict</arg>
</args>
</configuration>
<executions>
<execution>
<id>kotlin-compile</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<sourceDirs>
<sourceDir>${java-sources-dir}</sourceDir>
<sourceDir>${kotlin-sources-dir}</sourceDir>
</sourceDirs>
</configuration>
</execution>
<execution>
<id>kotlin-test-compile</id>
<goals>
<goal>test-compile</goal>
</goals>
<configuration>
<sourceDirs>
<sourceDir>${java-tests-dir}</sourceDir>
<sourceDir>${kotlin-tests-dir}</sourceDir>
</sourceDirs>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${java-api-version}</source>
<target>${java-api-version}</target>
</configuration>
<executions>
<!--
Replacing default-compile and default-testCompile so that we can handle joint Kotlin
and Java sources together. Both the aforementioned targets get treated in a special
way by Maven, which would cause us issues.
-->
<execution>
<id>default-compile</id>
<phase>none</phase>
</execution>
<execution>
<id>default-testCompile</id>
<phase>none</phase>
</execution>
<execution>
<id>java-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>java-test-compile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<!-- Disable Java module management for tests, as it complicates things. -->
<useModulePath>false</useModulePath>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>