-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
53 lines (44 loc) · 1.38 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
import java.time.LocalDateTime
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 '1.8.0'
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
providedCompile 'jakarta.platform:jakarta.jakartaee-api:8.0.0'
providedCompile platform('org.eclipse.microprofile:microprofile:3.2')
providedCompile 'org.eclipse.microprofile.config:microprofile-config-api'
}
payaraMicro {
payaraVersion = '5.2020.7'
deployWar = true
useUberJar = false
daemon = false
}
task kick(dependsOn: clean) {}
task wipe(dependsOn: clean) {}
jib {
allowInsecureRegistries = true
from {
image = 'qaware/distroless-zulu-payara-micro:11.0.10-5.2020.7'
}
to {
image = 'lreimer/productive-cloud-native-devex'
}
container {
appRoot = '/opt/payara/deployments/ROOT.war'
entrypoint = 'INHERIT'
args = ['--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]"
}
}