pom.xml 7.63 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8"?>
<!--
	Copyright 2017 Global Crop Diversity Trust

	Licensed under the Apache License, Version 2.0 (the "License");
	you may not use this file except in compliance with the License.
	You may obtain a copy of the License at

	http://www.apache.org/licenses/LICENSE-2.0

	Unless required by applicable law or agreed to in writing, software
	distributed under the License is distributed on an "AS IS" BASIS,
	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	See the License for the specific language governing permissions and
	limitations under the License.
-->
<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>
	<parent>
		<groupId>org.genesys-pgr</groupId>
		<artifactId>application-blocks</artifactId>
22
		<version>4.0-SNAPSHOT</version>
Matija Obreza's avatar
Matija Obreza committed
23
24
25
26
27
	</parent>
	<artifactId>application-blocks-parent</artifactId>
	<packaging>pom</packaging>
	<name>Application Blocks parent pom</name>
	<description>This is the main project pom.</description>
28
	<url>https://gitlab.croptrust.org/genesys-pgr/application-blocks</url>
Matija Obreza's avatar
Matija Obreza committed
29
30
31

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Maxym Borodenko's avatar
Java 11    
Maxym Borodenko committed
32
33
		<jdk.target>11</jdk.target>
		<jdk.source>11</jdk.source>
Matija Obreza's avatar
Matija Obreza committed
34
		<show.deprecations>false</show.deprecations>
Matija Obreza's avatar
Matija Obreza committed
35
		<log4j2.version>2.17.2</log4j2.version>
Maxym Borodenko's avatar
Maxym Borodenko committed
36
		<junit.version>4.13.2</junit.version>
Maxym Borodenko's avatar
Maxym Borodenko committed
37
		<org.hamcrest.version>2.2</org.hamcrest.version>
Matija Obreza's avatar
Matija Obreza committed
38

Matija Obreza's avatar
Matija Obreza committed
39
40
		<jackson.version>2.13.2</jackson.version>
		<spring.version>5.3.19</spring.version>
Maxym Borodenko's avatar
Maxym Borodenko committed
41
		<spring.data.version>2.5.3</spring.data.version>
Maxym Borodenko's avatar
Maxym Borodenko committed
42
		<spring.security.oauth2.version>2.5.1.RELEASE</spring.security.oauth2.version>
Maxym Borodenko's avatar
Maxym Borodenko committed
43
		<spring.security.version>5.5.1</spring.security.version>
Matija Obreza's avatar
Matija Obreza committed
44
45
		<querydsl.version>5.0.0</querydsl.version>
		<hibernate.version>5.5.5.Final</hibernate.version>
Maxym Borodenko's avatar
Maxym Borodenko committed
46
		<hsqldb.version>2.6.0</hsqldb.version>
Maxym Borodenko's avatar
Maxym Borodenko committed
47
		<tomcat-jdbc.version>10.0.8</tomcat-jdbc.version>
Matija Obreza's avatar
Matija Obreza committed
48
49
50
51
52
53
54
55
56
57
58
59
60
61
	</properties>

	<repositories>
		<repository>
			<id>central</id>
			<url>https://repo.maven.apache.org/maven2</url>
		</repository>
		<repository>
			<id>snapshots</id>
			<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
		</repository>
	</repositories>

	<build>
Maxym Borodenko's avatar
Java 11    
Maxym Borodenko committed
62
63
64
65
66
67
68
69
70
71
72
		<extensions>
			<extension>
				<groupId>javax.annotation</groupId>
				<artifactId>javax.annotation-api</artifactId>
			</extension>
			<extension>
				<groupId>javax.annotation</groupId>
				<artifactId>jsr250-api</artifactId>
				<version>1.0</version>
			</extension>
		</extensions>
Matija Obreza's avatar
Matija Obreza committed
73
		<plugins>
74
			<plugin>
Matija Obreza's avatar
Matija Obreza committed
75
76
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>flatten-maven-plugin</artifactId>
Maxym Borodenko's avatar
Maxym Borodenko committed
77
				<version>1.2.7</version>
78
				<configuration>
Matija Obreza's avatar
Matija Obreza committed
79
					<flattenMode>ossrh</flattenMode>
80
				</configuration>
Matija Obreza's avatar
Matija Obreza committed
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
				<executions>
					<!-- enable flattening -->
					<execution>
						<id>flatten</id>
						<phase>process-resources</phase>
						<goals>
							<goal>flatten</goal>
						</goals>
					</execution>
					<!-- ensure proper cleanup -->
					<execution>
						<id>flatten.clean</id>
						<phase>clean</phase>
						<goals>
							<goal>clean</goal>
						</goals>
					</execution>
				</executions>
99
100
			</plugin>
			<!--buildnumber-maven-plugin -->
Matija Obreza's avatar
Matija Obreza committed
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>buildnumber-maven-plugin</artifactId>
				<version>1.3</version>
				<executions>
					<execution>
						<phase>validate</phase>
						<goals>
							<goal>create</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<!-- first check to see if you have locally modified files, and will
						fail if there are any. -->
					<doCheck>false</doCheck>
					<doUpdate>false</doUpdate>
				</configuration>
			</plugin>
120
			<!--maven-compiler-plugin -->
Matija Obreza's avatar
Matija Obreza committed
121
122
123
			<plugin>
				<inherited>true</inherited>
				<artifactId>maven-compiler-plugin</artifactId>
124
				<version>3.8.1</version>
Matija Obreza's avatar
Matija Obreza committed
125
126
127
128
129
				<configuration>
					<source>${jdk.source}</source>
					<target>${jdk.target}</target>
					<optimize>true</optimize>
					<showWarnings>true</showWarnings>
130
					<showDeprecation>false</showDeprecation>
131
					<failOnWarning>true</failOnWarning>
Matija Obreza's avatar
Matija Obreza committed
132
133
				</configuration>
			</plugin>
Matija Obreza's avatar
Matija Obreza committed
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
			<!-- SpotBugs Static Analysis -->
			<plugin>
				<groupId>com.github.spotbugs</groupId>
				<artifactId>spotbugs-maven-plugin</artifactId>
				<version>4.2.0</version>
				<configuration>
					<effort>Max</effort>
					<threshold>Low</threshold>
					<failOnError>true</failOnError>
					<!-- <includeFilterFile>${session.executionRootDirectory}/spotbugs-security-include.xml</includeFilterFile>
					<excludeFilterFile>${session.executionRootDirectory}/spotbugs-security-exclude.xml</excludeFilterFile> -->
					<plugins>
						<plugin>
							<groupId>com.h3xstream.findsecbugs</groupId>
							<artifactId>findsecbugs-plugin</artifactId>
							<version>1.11.0</version>
						</plugin>
					</plugins>
				</configuration>
			</plugin>
Matija Obreza's avatar
Matija Obreza committed
154
155
156
157
		</plugins>
	</build>

	<dependencies>
Maxym Borodenko's avatar
Java 11    
Maxym Borodenko committed
158
159
		<!--Java 11-->
		<dependency>
160
161
162
			<groupId>jakarta.annotation</groupId>
			<artifactId>jakarta.annotation-api</artifactId>
			<version>1.3.5</version>
Matija Obreza's avatar
Matija Obreza committed
163
			<scope>provided</scope>
Maxym Borodenko's avatar
Java 11    
Maxym Borodenko committed
164
165
		</dependency>

Matija Obreza's avatar
Matija Obreza committed
166
167
		<!-- Logging dependencies -->
		<dependency>
Artem Hrybeniuk's avatar
Artem Hrybeniuk committed
168
169
170
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-slf4j-impl</artifactId>
			<version>${log4j2.version}</version>
171
			<scope>test</scope>
Matija Obreza's avatar
Matija Obreza committed
172
173
174
		</dependency>

		<dependency>
Artem Hrybeniuk's avatar
Artem Hrybeniuk committed
175
176
177
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-jcl</artifactId>
			<version>${log4j2.version}</version>
178
			<scope>test</scope>
Matija Obreza's avatar
Matija Obreza committed
179
180
181
182
183
184
		</dependency>

		<!-- Apache commons -->
		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-collections4</artifactId>
Maxym Borodenko's avatar
Maxym Borodenko committed
185
			<version>4.4</version>
Matija Obreza's avatar
Matija Obreza committed
186
187
188
189
190
191
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-lang3</artifactId>
Maxym Borodenko's avatar
Maxym Borodenko committed
192
			<version>3.12.0</version>
Matija Obreza's avatar
Matija Obreza committed
193
194
			<scope>provided</scope>
		</dependency>
Matija Obreza's avatar
Matija Obreza committed
195

Matija Obreza's avatar
Cleanup    
Matija Obreza committed
196
197
		<dependency>
			<groupId>org.hibernate</groupId>
Maxym Borodenko's avatar
Maxym Borodenko committed
198
			<artifactId>hibernate-core</artifactId>
Matija Obreza's avatar
Cleanup    
Matija Obreza committed
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
			<version>${hibernate.version}</version>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.springframework.data</groupId>
			<artifactId>spring-data-jpa</artifactId>
			<version>${spring.data.version}</version>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-databind</artifactId>
			<version>${jackson.version}</version>
			<scope>provided</scope>
		</dependency>
Matija Obreza's avatar
Matija Obreza committed
216

Matija Obreza's avatar
Cleanup    
Matija Obreza committed
217
218
219
220
221
222
223
224
225
226
227
228
229
		<dependency>
			<groupId>com.querydsl</groupId>
			<artifactId>querydsl-jpa</artifactId>
			<version>${querydsl.version}</version>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-test</artifactId>
			<version>${spring.version}</version>
			<scope>test</scope>
		</dependency>
Matija Obreza's avatar
Matija Obreza committed
230
231
232
233
234

		<!-- Test dependencies -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
Maxym Borodenko's avatar
Maxym Borodenko committed
235
			<version>${junit.version}</version>
Matija Obreza's avatar
Matija Obreza committed
236
			<scope>test</scope>
Maxym Borodenko's avatar
Maxym Borodenko committed
237
238
239
240
241
242
			<exclusions>
				<exclusion>
					<groupId>org.hamcrest</groupId>
					<artifactId>hamcrest-core</artifactId>
				</exclusion>
			</exclusions>
Matija Obreza's avatar
Matija Obreza committed
243
244
245
246
247
		</dependency>

		<dependency>
			<groupId>org.hamcrest</groupId>
			<artifactId>hamcrest-library</artifactId>
Maxym Borodenko's avatar
Maxym Borodenko committed
248
			<version>${org.hamcrest.version}</version>
Matija Obreza's avatar
Matija Obreza committed
249
250
			<scope>test</scope>
		</dependency>
Matija Obreza's avatar
Matija Obreza committed
251

Matija Obreza's avatar
Cleanup    
Matija Obreza committed
252
253
254
255
256
257
		<dependency>
			<groupId>org.apache.tomcat</groupId>
			<artifactId>tomcat-jdbc</artifactId>
			<version>${tomcat-jdbc.version}</version>
			<scope>test</scope>
		</dependency>
Matija Obreza's avatar
Matija Obreza committed
258

Matija Obreza's avatar
Cleanup    
Matija Obreza committed
259
260
261
262
263
264
		<dependency>
			<groupId>org.hsqldb</groupId>
			<artifactId>hsqldb</artifactId>
			<version>${hsqldb.version}</version>
			<scope>test</scope>
		</dependency>
Matija Obreza's avatar
Matija Obreza committed
265

Matija Obreza's avatar
Matija Obreza committed
266
267
	</dependencies>
</project>