This repository has been archived by the owner on Mar 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (57 loc) · 2.03 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
plugins {
id 'java'
id 'io.quarkus'
id "com.google.cloud.tools.minikube" version "1.0.0-alpha.3"
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation 'io.quarkus:quarkus-resteasy-jsonb'
implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
implementation 'io.quarkus:quarkus-resteasy'
testImplementation 'io.quarkus:quarkus-junit5'
testImplementation 'io.rest-assured:rest-assured'
}
group 'net.explorviz'
version '0.1'
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << '-parameters'
}
compileTestJava {
options.encoding = 'UTF-8'
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
minikubeStart {
flags = ["--vm-driver=kvm2", "--memory=16384", "--cpus=4", "--kubernetes-version=v1.18.0"]
}
task istioctlStart(type: Exec) {
commandLine 'istioctl', 'manifest', 'apply', '--set', 'profile=default', '--set', 'values.grafana.enabled=true', '--set', 'values.kiali.enabled=true'
}
task playgroundBuildImage(type: Exec) {
dependsOn 'quarkusBuild'
commandLine 'scripts/application-tasks-wrapper.sh', 'build-image-in-minikube'
tasks.findByName('playgroundBuildImage').mustRunAfter 'quarkusBuild'
}
task minikubeSetupIstioIngress(type: Exec) {
commandLine 'scripts/application-tasks-wrapper.sh', 'configure_minikube_ingress'
}
task playgroundSample(type: Exec) {
String sample=project.properties['sample'] ?: "authentication"
String mode=project.properties['mode'] ?: "setup"
commandLine 'src/test/scripts/samples.sh', sample, mode
}
task playgroundInitialSetup {
dependsOn 'minikubeStart'
dependsOn 'istioctlStart'
dependsOn 'minikubeSetupIstioIngress'
dependsOn 'playgroundBuildImage'
tasks.findByName('istioctlStart').mustRunAfter 'minikubeStart'
tasks.findByName('minikubeSetupIstioIngress').mustRunAfter 'istioctlStart'
tasks.findByName('playgroundBuildImage').mustRunAfter 'istioctlStart'
}