-
Notifications
You must be signed in to change notification settings - Fork 151
/
pom.xml
177 lines (162 loc) · 5.47 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
<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>com.darwinsys</groupId>
<artifactId>javasrc</artifactId>
<version>1.1-SNAPSHOT</version>
<packaging>pom</packaging>
<inceptionYear>1995</inceptionYear>
<name>javasrc</name>
<url>https://javacook.darwinsys.com</url>
<description>Code Examples for the O'Reilly Java Cookbook</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.javadoc.failOnError>false</maven.javadoc.failOnError>
<javase.version>21</javase.version>
<maven.compiler.source>${javase.version}</maven.compiler.source>
<maven.compiler.target>${javase.version}</maven.compiler.target>
<maven.compiler.testSource>${javase.version}</maven.compiler.testSource>
<maven.compiler.testTarget>${javase.version}</maven.compiler.testTarget>
<javaee.version>8.0</javaee.version>
<darwinsys-api.version>1.9.0-SNAPSHOT</darwinsys-api.version>
<!-- Only used in some modules, worth defining here anyway -->
<darwinsys-ee.version>0.3.9</darwinsys-ee.version>
<junit4.version>[4.13.1,)</junit4.version>
<junit5.version>5.8.1</junit5.version>
<mockito.version>3.12.4</mockito.version>
</properties>
<modules>
<module>main</module>
<module>ai</module>
<module>desktop</module>
<!-- <module>ee</module> XML and other issues -->
<!-- <module>graal</module> Only works with graal vm-->
<module>incubation</module> <!-- Comment out if don't have recent-enough Java -->
<!-- <module>javafx</module> doesn't work on some platforms -->
<!-- <module>jlink</module> has custom build script -->
<module>json</module>
<!-- <module>lombokdemo</module> doesn't build properly yet -->
<!-- multijardemo is NOT a Maven module - uses a shell script insted -->
<module>restdemo</module>
<!-- sidebyside is NOT a Maven module - contains non-Java stuff -->
<module>spark</module>
<module>testing</module>
<!-- sampleproject is not a module but is a maven archetype -->
<module>testing-spock</module>
<module>unsafe</module>
<module>xml</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<compilerArgs>
<arg>--enable-preview</arg>
<arg>--source</arg><arg>${javase.version}</arg>
</compilerArgs>
</configuration>
</plugin>
<!-- Ensure that JUnit5 test runner is used -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit-platform</artifactId>
<version>3.0.0-M5</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<dependencies>
<!-- My own Java API potpourri -->
<dependency>
<groupId>com.darwinsys</groupId>
<artifactId>darwinsys-api</artifactId>
<version>${darwinsys-api.version}</version>
</dependency>
<!-- Test early and often... JUnit 5 with 4 compat.
-->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit5.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit5.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>${junit5.version}</version>
<scope>test</scope>
</dependency>
<!-- Backwards compat: IF you have a mix of JUnit 4 and 5 tests, you should add this: -->
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>${junit5.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>2.2</version>
<scope>test</scope>
</dependency>
<!-- log4j, now at apache with new improved coordinates -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.17.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.17.1</version>
</dependency>
<!-- JAXB deleted from Java SE 9+, needs module or this: -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>3.0.2</version>
</dependency>
</dependencies>
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
<configuration>
<formats>
<format>html</format>
<format>xml</format>
</formats>
</configuration>
</plugin>
</plugins>
</reporting>
</project>