-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
54 lines (51 loc) · 1.56 KB
/
build.gradle
File metadata and controls
54 lines (51 loc) · 1.56 KB
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 "7.2.1"
}
description = 'JLab authorization manager app'
group = 'org.jlab'
version = new File("${projectDir}/VERSION").text.trim()
ext.version = project.version
ext.smoothnessVersion = '5.0.2'
ext.releaseDate = new Date().format('MMM dd yyyy')
tasks.withType(JavaCompile).configureEach {
options.release = 17
options.encoding = 'UTF-8'
options.compilerArgs += ["-Xlint:deprecation", "-Xlint:unchecked"]
}
repositories {
mavenCentral()
}
dependencies {
// No matter what smoothness weblib MUST be included in WAR (https://github.com/JeffersonLab/smoothness/issues/4)
implementation "org.jlab:smoothness-weblib:${smoothnessVersion}"
// Smoothness setup should install these into Wildfly
providedCompile 'org.tuckey:urlrewritefilter:5.1.3',
'org.jlab:jlog:5.2.0'
// Wildfly 37.0.1.Final provides:
providedCompile 'jakarta.platform:jakarta.jakartaee-api:10.0.0',
'org.hibernate:hibernate-core:6.6.19.Final',
'org.glassfish.web:jakarta.servlet.jsp.jstl:3.0.1'
}
tasks.named('jar') {
enabled = false
}
war {
archiveFileName = 'jam.war'
filesMatching('WEB-INF/web.xml') {
filter {
String line -> line.replaceAll("@VERSION@", version)
}
filter {
String line -> line.replaceAll("@RELEASE_DATE@", releaseDate)
}
filter {
String line -> line.replaceAll("@SMOOTHNESS_VERSION@", smoothnessVersion)
}
}
}
spotless {
java {
googleJavaFormat()
}
}