mirror of
https://github.com/jlengrand/spring-petclinic-kotlin.git
synced 2026-03-10 08:41:20 +00:00
58 lines
1.9 KiB
Kotlin
58 lines
1.9 KiB
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
val kotlinVersion = "1.2.30"
|
|
id("org.springframework.boot") version "2.1.1.RELEASE"
|
|
id("org.jetbrains.kotlin.jvm") version kotlinVersion
|
|
id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion
|
|
id("io.spring.dependency-management") version "1.0.6.RELEASE"
|
|
}
|
|
|
|
val boostrapVersion = "3.3.6"
|
|
val jQueryVersion = "2.2.4"
|
|
val jQueryUIVersion = "1.11.4"
|
|
|
|
tasks {
|
|
withType<KotlinCompile> {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
freeCompilerArgs = listOf("-Xjsr305=strict")
|
|
}
|
|
}
|
|
}
|
|
|
|
val test by tasks.getting(Test::class) {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.springframework.boot:spring-boot-starter-actuator")
|
|
implementation("org.springframework.boot:spring-boot-starter-cache")
|
|
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
|
|
implementation("org.springframework.boot:spring-boot-starter-web")
|
|
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
|
|
implementation("javax.cache:cache-api")
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
implementation("org.webjars:webjars-locator-core")
|
|
implementation("org.webjars:jquery:$jQueryVersion")
|
|
implementation("org.webjars:jquery-ui:$jQueryUIVersion")
|
|
implementation("org.webjars:bootstrap:$boostrapVersion")
|
|
|
|
testImplementation("org.springframework.boot:spring-boot-starter-test") {
|
|
exclude(module = "junit")
|
|
}
|
|
testImplementation("org.springframework.boot:spring-boot-starter-webflux")
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api")
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
|
|
|
|
runtimeOnly("org.hsqldb:hsqldb")
|
|
runtimeOnly("mysql:mysql-connector-java")
|
|
}
|
|
|