-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (69 loc) · 2.26 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
plugins {
id "io.spring.dependency-management" version "1.0.6.RELEASE"
id "com.github.johnrengelman.shadow" version "4.0.2"
id "org.jetbrains.kotlin.jvm" version "1.2.61"
id "org.jetbrains.kotlin.kapt" version "1.2.61"
id "org.jetbrains.kotlin.plugin.allopen" version "1.2.61"
}
apply plugin:"application"
version "0.1"
group "cberry.dev"
repositories {
mavenLocal()
mavenCentral()
maven { url "https://jcenter.bintray.com" }
}
dependencyManagement {
imports {
mavenBom 'io.micronaut:micronaut-bom:1.0.5'
}
}
dependencies {
compile "io.micronaut:micronaut-http-client"
compile "io.micronaut:micronaut-http-server-netty"
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.21"
compile "org.jetbrains.kotlin:kotlin-reflect:1.3.21"
compile "io.micronaut:micronaut-runtime"
compile 'io.micronaut.configuration:micronaut-hibernate-jpa'
kapt "io.micronaut:micronaut-inject-java"
kapt "io.micronaut:micronaut-validation"
kaptTest "io.micronaut:micronaut-inject-java"
runtime "ch.qos.logback:logback-classic:1.2.3"
runtime "com.fasterxml.jackson.module:jackson-module-kotlin:2.9.7"
// database & ORM
compile "io.micronaut.configuration:micronaut-hibernate-jpa"
compile "io.micronaut.configuration:micronaut-hibernate-validator"
compile "io.micronaut.configuration:micronaut-jdbc-hikari"
runtime 'com.h2database:h2'
testCompile "junit:junit:4.12"
testCompile "io.micronaut:micronaut-inject-java"
testCompile "org.hamcrest:hamcrest-all:1.3"
testCompile "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testCompile "org.spekframework.spek2:spek-dsl-jvm:${spekVersion}"
testRuntime "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
testRuntimeOnly "org.spekframework.spek2:spek-runner-junit5:$spekVersion"
}
shadowJar {
mergeServiceFiles()
}
run.jvmArgs('-noverify', '-XX:TieredStopAtLevel=1')
mainClassName = "cberry.dev.Application"
test {
useJUnitPlatform()
}
allOpen {
annotation("io.micronaut.aop.Around")
}
compileKotlin {
kotlinOptions {
jvmTarget = '1.8'
//Will retain parameter names for Java reflection
javaParameters = true
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = '1.8'
javaParameters = true
}
}