-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (41 loc) · 1.37 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
plugins {
id 'war'
}
description = 'Application deployment manager app'
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()
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.5.0'
implementation 'org.apache.sshd:sshd-core:2.12.1'
// Smoothness setup should install these into Wildfly
providedCompile 'org.tuckey:urlrewritefilter:4.0.4'
// 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'
}
war {
archiveFileName = 'adm.war'
filesMatching('WEB-INF/web.xml') {
filter {
String line -> line.replaceAll("@VERSION@", project.version)
}
filter {
String line -> line.replaceAll("@RELEASE_DATE@", releaseDate)
}
}
}