-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
101 lines (82 loc) · 2.63 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
plugins {
id 'war'
id "com.diffplug.spotless" version "6.25.0"
}
description 'Jefferson Lab Alarm Warning System (JAWS) web admin interface'
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:unchecked" << "-Xlint:deprecation"
}
repositories {
mavenCentral()
maven {
url "https://packages.confluent.io/maven"
}
maven {
url "https://s01.oss.sonatype.org/content/repositories/releases/"
}
}
configurations {
jbossModule
providedCompile.extendsFrom(jbossModule)
}
dependencies {
implementation 'org.jlab:smoothness-weblib:4.6.0'
// Smoothness setup should install these into Wildfly as global module
providedCompile 'org.tuckey:urlrewritefilter:4.0.4'
// Wildfly 26.1.3.Final provides globally:
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'
// Bundle these into WAR (using jbossModule is too much trouble)
implementation 'org.jlab:jaws-libj:5.0.0',
'io.confluent:kafka-avro-serializer:7.4.0'
testImplementation 'junit:junit:4.13.2',
'com.oracle.database.jdbc:ojdbc11:21.7.0.0'
}
sourceSets {
integration {
java.srcDir "${projectDir}/src/integration/java"
resources.srcDir "${projectDir}/src/integration/resources"
compileClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.main.output
}
}
configurations {
integrationImplementation.extendsFrom testImplementation
integrationRuntimeOnly.extendsFrom runtimeOnly
}
task integrationTest(type: Test) {
description = 'Runs integration tests.'
group = 'verification'
testClassesDirs = sourceSets.integration.output.classesDirs
classpath = sourceSets.integration.runtimeClasspath
testLogging {
showStandardStreams = true
}
environment 'ORACLE_USER', 'JAWS_OWNER'
environment 'ORACLE_PASS', 'password'
environment 'ORACLE_SERVICE', 'xepdb1'
environment 'ORACLE_SERVER', 'localhost:1521'
}
war {
archiveFileName = 'jaws.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()
}
}