-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
82 lines (70 loc) · 2.49 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
buildscript {
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:4.0.3"
classpath "io.spring.gradle:dependency-management-plugin:1.0.9.RELEASE"
classpath "net.ltgt.gradle:gradle-apt-plugin:0.21"
classpath "gradle.plugin.com.google.cloud.tools:jib-gradle-plugin:2.1.0"
classpath "gradle.plugin.com.github.lkishalmi.gatling:gradle-gatling-plugin:3.2.9"
}
}
// Version = GIT commit
version 'git rev-parse HEAD'.execute().text
group "de.az.demo.mn.opa"
apply plugin: "io.spring.dependency-management"
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "application"
apply plugin: "groovy"
apply plugin: "net.ltgt.apt-eclipse"
apply plugin: "net.ltgt.apt-idea"
apply plugin: "com.google.cloud.tools.jib"
apply plugin: "com.github.lkishalmi.gatling"
repositories {
mavenLocal()
mavenCentral()
maven { url "https://jcenter.bintray.com" }
}
dependencyManagement {
imports {
mavenBom 'io.micronaut:micronaut-bom:1.3.2'
}
}
dependencies {
annotationProcessor "io.micronaut:micronaut-inject-java"
compile "io.micronaut:micronaut-http-client"
compile "io.micronaut:micronaut-http-server-netty"
compile "io.micronaut:micronaut-inject"
compile "io.micronaut:micronaut-runtime"
compile "io.micronaut:micronaut-management"
compileOnly "io.micronaut:micronaut-inject-java"
runtime "ch.qos.logback:logback-classic:1.2.3"
testCompile "io.micronaut:micronaut-inject-groovy"
testCompile("org.spockframework:spock-core:1.3-groovy-2.5") {
exclude group: "org.codehaus.groovy", module: "groovy-all"
}
testCompile "com.github.tomakehurst:wiremock-standalone:2.26.2"
}
shadowJar {
mergeServiceFiles()
}
jib {
to {
auth {
// Credential helper for docker does not seem to work properly
// Provide credentials using gradle.properties or environment variables
username = findProperty('jibToAuthUsername') ?: System.getenv('JIB_TO_AUTH_USERNAME')
password = findProperty('jibToAuthPassword') ?: System.getenv('JIB_TO_AUTH_PASSWORD')
}
}
container {
jvmFlags = ['-Xms32m', '-Xmx32m']
ports = ['8080']
}
}
run.jvmArgs('-noverify', '-XX:TieredStopAtLevel=1')
mainClassName = "de.az.demo.mn.opa.Application"
compileJava.options.compilerArgs += '-parameters'
compileTestJava.options.compilerArgs += '-parameters'