-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
88 lines (72 loc) · 2.25 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
plugins {
id "io.spring.dependency-management" version "1.0.6.RELEASE"
id "com.github.johnrengelman.shadow" version "4.0.0"
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 "com.rosskerr"
repositories {
mavenLocal()
mavenCentral()
maven { url "https://jcenter.bintray.com" }
}
dependencyManagement {
imports {
mavenBom 'io.micronaut:bom:1.0.0.RC1'
}
}
dependencies {
implementation "io.micronaut:http-client"
implementation "io.micronaut:http-server-netty"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlinVersion}"
implementation "org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}"
implementation "io.micronaut:runtime"
kapt "io.micronaut:inject-java"
kapt "io.micronaut:validation"
kaptTest "io.micronaut:inject-java"
runtimeOnly "ch.qos.logback:logback-classic:1.2.3"
runtimeOnly "com.fasterxml.jackson.module:jackson-module-kotlin:2.9.4.1"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.1.0"
testImplementation "org.jetbrains.spek:spek-api:1.1.5"
testRuntime "org.junit.jupiter:junit-jupiter-engine:5.1.0"
testRuntime "org.jetbrains.spek:spek-junit-platform-engine:1.1.5"
compile "io.micronaut.configuration:hibernate-jpa"
compile "com.oracle:ojdbc8:12.2.0.1"
compile "io.micronaut.configuration:jdbc-hikari"
implementation "org.jsoup:jsoup:1.11.3"
}
shadowJar {
mergeServiceFiles()
}
run.jvmArgs('-noverify', '-XX:TieredStopAtLevel=1')
mainClassName = "com.rosskerr.ServiceApplication"
task opinionServices (type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = 'com.rosskerr.ServiceApplication'
}
task opinionTasks (type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = 'com.rosskerr.TaskApplication'
}
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
}
}