-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
54 lines (50 loc) · 1.38 KB
/
build.gradle
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
plugins {
id 'war'
id "com.diffplug.spotless" version "6.25.0"
}
description = "Accelerator task calendar"
group 'org.jlab'
version new File("${projectDir}/VERSION").text.trim()
ext.releaseDate = new Date().format('MMM dd yyyy')
tasks.withType(JavaCompile) {
options.release = 11
options.encoding = 'UTF-8'
options.compilerArgs += ["-Xlint:deprecation", "-Xlint:unchecked"]
}
repositories {
mavenCentral()
}
dependencies {
// Setup should install these into Wildfly
providedCompile 'org.tuckey:urlrewritefilter:4.0.4',
'org.apache.poi:poi:5.2.3',
'org.apache.poi:poi-ooxml:5.2.3'
// Wildfly 26.1.3.Final provides:
providedCompile 'javax:javaee-api:8.0.1',
'javax.servlet:jstl:1.2',
'org.hibernate:hibernate-core:5.3.28.Final',
'org.hibernate:hibernate-envers:5.3.28.Final'
testImplementation 'junit:junit:4.13.2'
}
test {
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
}
}
war {
archiveFileName='calendar.war'
filesMatching('WEB-INF/web.xml') {
filter {
String line -> line.replaceAll("@VERSION@", project.version)
}
filter {
String line -> line.replaceAll("@RELEASE_DATE@", releaseDate)
}
}
}
spotless {
java {
googleJavaFormat()
}
}