Created
January 27, 2018 17:05
-
-
Save codemwnci/847fbb7c57cebdaf4daae2e7918284e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
ext { | |
kotlinVersion = '1.2.10' | |
springBootVersion = '2.0.0.M7' | |
} | |
repositories { | |
mavenCentral() | |
maven { url "https://repo.spring.io/snapshot" } | |
maven { url "https://repo.spring.io/milestone" } | |
} | |
dependencies { | |
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") | |
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}") | |
classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}") | |
} | |
} | |
apply plugin: 'kotlin' | |
apply plugin: 'kotlin-spring' | |
//apply plugin: 'eclipse' | |
apply plugin: 'org.springframework.boot' | |
apply plugin: 'io.spring.dependency-management' | |
sourceCompatibility = 1.8 | |
compileKotlin { | |
kotlinOptions.jvmTarget = "1.8" | |
} | |
compileTestKotlin { | |
kotlinOptions.jvmTarget = "1.8" | |
} | |
repositories { | |
mavenCentral() | |
maven { url "https://repo.spring.io/snapshot" } | |
maven { url "https://repo.spring.io/milestone" } | |
} | |
dependencies { | |
compile('org.springframework.boot:spring-boot-starter-websocket') | |
compile("org.jetbrains.kotlin:kotlin-stdlib-jre8") | |
compile("org.jetbrains.kotlin:kotlin-reflect") | |
compile "com.fasterxml.jackson.module:jackson-module-kotlin:2.9.0" | |
testCompile('org.springframework.boot:spring-boot-starter-test') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment