-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (53 loc) · 1.71 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
55
56
57
58
59
60
61
62
plugins {
id 'war'
id "com.diffplug.spotless" version "6.25.0"
// id "com.github.spotbugs" version "6.0.18"
}
description = 'Down time manager app'
group 'org.jlab'
version new File("${projectDir}/VERSION").text.trim()
ext.releaseDate = new Date().format('MMM dd yyyy')
tasks.withType(JavaCompile).configureEach {
options.release = 11
options.encoding = 'UTF-8'
options.compilerArgs += ["-Xlint:deprecation", "-Xlint:unchecked"]
}
repositories {
mavenCentral()
maven {
url "https://s01.oss.sonatype.org/content/repositories/releases/"
}
}
dependencies {
// No matter what smoothness weblib MUST be included in WAR (https://github.com/JeffersonLab/smoothness/issues/4)
implementation 'org.jlab:smoothness-weblib:4.6.0'
//'org.apache.httpcomponents:httpclient:4.5.14',
//'org.apache.httpcomponents:httpmime:4.5.14'
// Smoothness setup should install these into Wildfly
providedCompile 'org.tuckey:urlrewritefilter:4.0.4',
'org.jlab:jlog:5.0.0',
'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',
'org.jsoup:jsoup:1.14.2'
}
war {
archiveFileName = 'dtm.war'
filesMatching('WEB-INF/web.xml') {
filter {
String line -> line.replaceAll("@VERSION@", project.version.toString())
}
filter {
String line -> line.replaceAll("@RELEASE_DATE@", releaseDate)
}
}
}
spotless {
java {
googleJavaFormat()
}
}