-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (49 loc) · 2.06 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
plugins {
id 'groovy'
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'application'
id 'com.google.cloud.tools.jib' version '2.2.0'
}
repositories {
jcenter()
}
configurations {
developmentOnly
}
dependencies {
annotationProcessor platform("io.micronaut:micronaut-bom:$micronautVersion")
compileOnly platform("io.micronaut:micronaut-bom:$micronautVersion")
compileOnly 'io.micronaut:micronaut-inject-groovy'
implementation platform("io.micronaut:micronaut-bom:$micronautVersion")
implementation 'io.micronaut:micronaut-runtime-groovy'
implementation 'io.micronaut:micronaut-validation'
implementation 'javax.annotation:javax.annotation-api'
implementation 'io.micronaut:micronaut-http-server-netty'
implementation 'io.micronaut:micronaut-http-client'
implementation 'io.micronaut:micronaut-management'
implementation 'io.micronaut.configuration:micronaut-micrometer-core'
implementation 'io.micronaut.configuration:micronaut-micrometer-registry-prometheus'
implementation 'javax.annotation:javax.annotation-api'
runtimeOnly 'ch.qos.logback:logback-classic:1.2.3'
testCompileOnly platform("io.micronaut:micronaut-bom:$micronautVersion")
testImplementation platform("io.micronaut:micronaut-bom:$micronautVersion")
testImplementation('org.spockframework:spock-core') {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
testImplementation 'io.micronaut:micronaut-inject-groovy'
testImplementation 'io.micronaut.test:micronaut-test-spock'
testImplementation 'io.micronaut.test:micronaut-test-junit5'
}
mainClassName = 'com.thecodesmith.artifactory.Application'
shadowJar {
mergeServiceFiles()
}
jib.to.image = 'thecodesmith/artifactory-badges'
test.classpath += configurations.developmentOnly
tasks.withType(GroovyCompile) {
groovyOptions.forkOptions.jvmArgs.add('-Dgroovy.parameters=true')
}
tasks.withType(JavaExec) {
classpath += configurations.developmentOnly
jvmArgs '-noverify', '-XX:TieredStopAtLevel=1', '-Dcom.sun.management.jmxremote'
}