mirror of
https://github.com/jlengrand/spring-petclinic-kotlin.git
synced 2026-03-10 08:41:20 +00:00
76 lines
2.5 KiB
Kotlin
76 lines
2.5 KiB
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
description = "Kotlin version of the Spring Petclinic application"
|
|
group = "org.springframework.samples"
|
|
// Align with Spring Version
|
|
version = "2.5.4"
|
|
|
|
java.sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
plugins {
|
|
val kotlinVersion = "1.4.10"
|
|
id("org.springframework.boot") version "2.5.4"
|
|
id("io.spring.dependency-management") version "1.0.10.RELEASE"
|
|
id("com.google.cloud.tools.jib") version "3.1.4"
|
|
kotlin("jvm") version kotlinVersion
|
|
kotlin("plugin.spring") version kotlinVersion
|
|
}
|
|
|
|
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")
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url = uri("https://repo.spring.io/snapshot") }
|
|
maven { url = uri("https://repo.spring.io/milestone") }
|
|
}
|
|
|
|
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-validation")
|
|
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")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-webflux")
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api")
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
|
|
|
|
runtimeOnly("com.h2database:h2")
|
|
runtimeOnly("mysql:mysql-connector-java")
|
|
|
|
developmentOnly("org.springframework.boot:spring-boot-devtools")
|
|
}
|
|
|
|
jib {
|
|
to {
|
|
image = "springcommunity/spring-petclinic-kotlin"
|
|
tags = setOf(project.version.toString(), "latest")
|
|
}
|
|
}
|