/
build.gradle
41 lines (34 loc) · 986 Bytes
/
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
apply plugin: 'liberty'
apply plugin: 'war'
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
// configure liberty-gradle-plugin
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'io.openliberty.tools:liberty-gradle-plugin:3.4.1'
}
}
ext {
liberty.server.var.artifactId = "${rootProject.name}"
}
repositories {
mavenCentral()
}
dependencies {
// provided dependencies
providedCompile 'jakarta.platform:jakarta.jakartaee-api:8.0.0'
providedCompile 'org.eclipse.microprofile:microprofile:4.1'
// test dependencies
testImplementation 'junit:junit:4.12'
testImplementation 'org.apache.cxf:cxf-rt-rs-client:3.3.4'
testImplementation 'org.apache.cxf:cxf-rt-rs-extension-providers:3.3.4'
testImplementation 'org.glassfish:javax.json:1.0.4'
testImplementation 'javax.xml.bind:jaxb-api:2.3.1'
}
clean.dependsOn 'libertyStop'