You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.6 KiB
Groovy
55 lines
1.6 KiB
Groovy
buildscript {
|
|
ext.kotlin_version = '1.2.21'
|
|
ext {
|
|
springBootVersion = '1.5.10.RELEASE'
|
|
kotlin_version = '1.2.21'
|
|
}
|
|
repositories {
|
|
jcenter()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
|
|
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
|
|
}
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'kotlin'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'org.springframework.boot'
|
|
|
|
group = 'net.cismon'
|
|
version = '0.0.1-SNAPSHOT'
|
|
sourceCompatibility = 1.8
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compile('org.springframework.boot:spring-boot-starter-data-jpa')
|
|
compile('org.springframework.boot:spring-boot-starter-data-rest')
|
|
compile('org.springframework.boot:spring-boot-starter-jdbc')
|
|
compile('org.springframework.boot:spring-boot-starter-web') {
|
|
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
|
|
}
|
|
compile 'com.fasterxml.jackson.core:jackson-databind'
|
|
runtime('mysql:mysql-connector-java')
|
|
testCompile('org.springframework.boot:spring-boot-starter-test')
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
compile 'javax.xml.bind:jaxb-api:2.3.0'
|
|
compile group: 'commons-validator', name: 'commons-validator', version: '1.4.0'
|
|
}
|
|
compileKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|