-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
85 lines (66 loc) · 2.39 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
buildscript {
ext {
kotlin_version = '1.1-M04'
springBootVersion = '1.4.3.RELEASE'
}
repositories {
mavenCentral()
maven { url 'http://dl.bintray.com/kotlin/kotlin-eap-1.1' }
}
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}"
}
}
apply plugin: 'kotlin'
apply plugin: 'kotlin-spring'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
jar {
baseName = 'demo'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
repositories {
mavenCentral()
maven { url 'http://dl.bintray.com/kotlin/kotlin-eap-1.1' }
}
ext {
jacksonVersion = dependencyManagement.importedProperties['jackson.version']
swaggerVersion = '2.6.1'
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:${kotlin_version}"
compile "org.jetbrains.kotlin:kotlin-reflect:${kotlin_version}"
compile 'org.springframework.boot:spring-boot-starter-data-elasticsearch'
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.springframework.boot:spring-boot-starter-security'
compile 'org.springframework.boot:spring-boot-starter-websocket'
compile 'org.springframework:spring-messaging'
compile 'org.springframework.security:spring-security-messaging'
compile 'org.keycloak:keycloak-spring-security-adapter:2.4.0.Final'
compile 'com.google.guava:guava:20.0'
compile 'com.fasterxml.jackson.core:jackson-core'
compile 'com.fasterxml.jackson.core:jackson-databind'
compile "com.fasterxml.jackson.module:jackson-module-kotlin:${jacksonVersion}"
compile 'io.github.microutils:kotlin-logging:1.4.1'
compile "io.springfox:springfox-swagger2:${swaggerVersion}"
compile "io.springfox:springfox-swagger-ui:${swaggerVersion}"
compile "io.springfox:springfox-bean-validators:${swaggerVersion}"
testCompile 'org.springframework.boot:spring-boot-starter-test'
}
springBoot {
mainClass = 'com.example.DemoApplicationKt'
}
bootRun {
environment SPRING_PROFILES_ACTIVE: environment.SPRING_PROFILES_ACTIVE ?: "local"
}
task wrapper(type: Wrapper) {
gradleVersion = '3.3'
}