-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
69 lines (61 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
buildscript {
ext {
kotlin_version = '1.3.0'
springBootVersion = '2.1.0.RELEASE'
}
repositories {
mavenCentral()
maven {
url 'http://dl.bintray.com/kotlin/kotlin-eap'
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlin_version}")
}
}
group 'org.pedrofelix'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'kotlin'
// for Spring Boot
apply plugin: 'kotlin-spring'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url 'https://dl.bintray.com/kotlin/kotlinx/'
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: '1.0.0'
compile group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-slf4j', version: '1.0.0'
compile group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-jdk8', version: '1.0.0'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'org.apache.httpcomponents', name: 'httpasyncclient', version: '4.1.4'
compile group: 'com.fasterxml.jackson.module', name:'jackson-module-kotlin', version: '2.9.7'
compile group: 'org.jetbrains.kotlin', name: 'kotlin-reflect'
//compile("org.springframework.boot:spring-boot-starter-undertow") {
// exclude module: "spring-boot-starter-logging"
// exclude module: "logback-classic"
//}
compile("org.springframework.boot:spring-boot-starter-web") {
exclude module: "spring-boot-starter-logging"
exclude module: "logback-classic"
//exclude module: "spring-boot-starter-tomcat"
}
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
compile group: 'io.reactivex', name: 'rxjava', version: '1.3.8'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}