-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (80 loc) · 3.28 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
plugins {
id "com.google.cloud.tools.jib" version '2.3.0'
id "com.github.johnrengelman.shadow" version "5.2.0"
id "application"
id "net.ltgt.apt-eclipse" version "0.21"
id 'org.ajoberstar.reckon' version '0.12.0'
}
reckon {
scopeFromProp()
stageFromProp('rc', 'final')
}
reckonTagCreate.dependsOn check
group "com.github.miguelaferreira.terraformcontroller"
repositories {
mavenCentral()
maven { url "https://jcenter.bintray.com" }
maven { url "https://jitpack.io" }
}
configurations {
// for dependencies that are needed for development only
developmentOnly
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'
testCompileOnly 'org.projectlombok:lombok:1.18.12'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.12'
annotationProcessor platform("io.micronaut:micronaut-bom:$micronautVersion")
annotationProcessor "io.micronaut:micronaut-inject-java"
annotationProcessor "io.micronaut:micronaut-validation"
implementation platform("io.micronaut:micronaut-bom:$micronautVersion")
implementation "io.micronaut:micronaut-management"
implementation "io.micronaut:micronaut-http-client"
implementation "io.micronaut:micronaut-inject"
implementation "io.micronaut:micronaut-validation"
implementation "io.micronaut:micronaut-runtime"
// implementation "io.micronaut.kubernetes:micronaut-kubernetes-discovery-client"
implementation 'com.github.miguelaferreira:micronaut-kubernetes:extend-k8s-operations-SNAPSHOT'
// implementation files('/Users/miguel/dev/git/github.com/miguelaferreira/micronaut-kubernetes/kubernetes-discovery-client/build/libs/kubernetes-discovery-client-1.0.5.BUILD-SNAPSHOT.jar')
implementation "io.micronaut:micronaut-http-server-netty"
implementation "javax.annotation:javax.annotation-api"
runtimeOnly "ch.qos.logback:logback-classic:1.2.3"
testAnnotationProcessor platform("io.micronaut:micronaut-bom:$micronautVersion")
testAnnotationProcessor "io.micronaut:micronaut-inject-java"
testImplementation platform("io.micronaut:micronaut-bom:$micronautVersion")
testImplementation "org.junit.jupiter:junit-jupiter-api"
testImplementation "io.micronaut.test:micronaut-test-junit5"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
testImplementation group: 'org.hamcrest', name: 'java-hamcrest', version: '2.0.0.0'
implementation 'io.vavr:vavr:0.10.2'
}
test.classpath += configurations.developmentOnly
mainClassName = "com.github.miguelaferreira.terraformcontroller.Application"
// use JUnit 5 platform
test {
useJUnitPlatform()
}
jib {
from {
image = 'gcr.io/distroless/java:11'
}
to {
image = 'docker.pkg.github.com/miguelaferreira/k8s-terraform-module-controller/controller-java11'
tags = ["latest", version.toString().replaceAll("[+]", "_")]
}
container {
jvmFlags = ["-XshowSettings: vm", "-XX:+UseContainerSupport"]
}
}
shadowJar {
mergeServiceFiles()
}
tasks.withType(JavaExec) {
classpath += configurations.developmentOnly
jvmArgs('-noverify', '-XX:TieredStopAtLevel=1', '-Dcom.sun.management.jmxremote')
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.compilerArgs.add('-parameters')
}