-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
53 lines (45 loc) · 1.34 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
plugins {
id 'war'
id "com.diffplug.spotless" version "6.25.0"
}
description = "Presentation app"
group 'org.jlab'
version new File("./VERSION").text
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 {
// Java 11 / Java EE 8 oddly doesn't support POSTING multipart/form-data
implementation 'org.apache.httpcomponents:httpmime:4.5.14'
// Setup should install these into Wildfly
providedCompile 'org.tuckey:urlrewritefilter:4.0.4',
'org.jlab:jlog:5.0.0'
// 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',
'org.jsoup:jsoup:1.14.2'
}
war {
archiveFileName='presenter.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()
}
}