-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
66 lines (54 loc) · 2.05 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
import java.time.LocalDateTime
import java.time.ZoneId
import java.time.format.DateTimeFormatter
plugins {
id 'java'
id 'groovy'
id 'war'
id 'fish.payara.micro-gradle-plugin' version '1.0.3'
id 'com.google.cloud.tools.jib' version '2.6.0'
}
compileJava {
targetCompatibility = '11'
sourceCompatibility = '11'
}
repositories {
jcenter()
}
dependencies {
providedCompile 'jakarta.platform:jakarta.jakartaee-api:8.0.0'
providedCompile platform('org.eclipse.microprofile:microprofile:3.3')
providedCompile 'org.eclipse.microprofile.config:microprofile-config-api'
testCompile 'org.zaproxy:zap-clientapi:1.8.0'
testCompile "org.codehaus.groovy:groovy:2.5.13"
testCompile platform("org.spockframework:spock-bom:2.0-M3-groovy-2.5")
testCompile "org.spockframework:spock-core"
testCompile "org.spockframework:spock-junit4" // you can remove this if your code does not rely on old JUnit 4 rules
// optional dependencies for using Spock
testCompile "org.hamcrest:hamcrest-core:2.2" // only necessary if Hamcrest matchers are used
testRuntime "net.bytebuddy:byte-buddy:1.10.10" // allows mocking of classes (in addition to interfaces)
testRuntime "org.objenesis:objenesis:3.1" // allows mocking of classes without default constructor (together with ByteBuddy or CGLIB)
}
test {
useJUnitPlatform()
}
payaraMicro {
payaraVersion = '5.2020.5'
deployWar = true
useUberJar = false
daemon = false
}
jib {
allowInsecureRegistries = true
from {
image = 'qaware/distroless-zulu-payara-micro:11.0.10-5.2021.1'
}
container {
appRoot = '/opt/payara/deployments/ROOT.war'
entrypoint = 'INHERIT'
args = ['--nocluster', '--disablephonehome', '--deploy', '/opt/payara/deployments/ROOT.war']
user = 'payara'
creationTime = "${DateTimeFormatter.ISO_DATE_TIME.format(LocalDateTime.now())}+01:00[Europe/Berlin]"
filesModificationTime = "${DateTimeFormatter.ISO_DATE_TIME.format(LocalDateTime.now())}+01:00[Europe/Berlin]"
}
}