forked from sourcegraph/training-java-monolith-refactor
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathbuild.gradle
More file actions
53 lines (41 loc) · 1.15 KB
/
Copy pathbuild.gradle
File metadata and controls
53 lines (41 loc) · 1.15 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
plugins {
id 'java'
id 'war'
id 'io.openliberty.tools.gradle.Liberty' version '3.8.2'
}
group 'com.sourcegraph.demo'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
ext {
junitVersion = '5.11.0'
}
sourceCompatibility = '21'
targetCompatibility = '21'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
dependencies {
compileOnly('jakarta.enterprise:jakarta.enterprise.cdi-api:4.1.0')
compileOnly('jakarta.servlet:jakarta.servlet-api:6.1.0')
// Derby database
implementation('org.apache.derby:derby:10.17.1.0')
implementation('org.apache.derby:derbytools:10.17.1.0')
// Connection pooling
implementation('org.apache.commons:commons-dbcp2:2.11.0')
implementation('org.apache.commons:commons-pool2:2.12.0')
implementation('joda-time:joda-time:2.12.5')
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
}
test {
useJUnitPlatform()
}
// Liberty configuration
liberty {
server {
name = 'defaultServer'
configDirectory = file('src/main/liberty/config')
}
}