spring/build.gradle.kts

52 lines
1.3 KiB
Text
Raw Permalink Normal View History

2024-01-02 19:29:16 +01:00
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "3.2.1"
id("io.spring.dependency-management") version "1.1.4"
kotlin("jvm") version "1.9.21"
kotlin("plugin.spring") version "1.9.21"
2024-01-02 21:20:15 +01:00
kotlin("plugin.jpa") version "1.9.21"
2024-01-02 19:29:16 +01:00
}
group = "com.example"
version = "0.0.1-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_21
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
2024-01-03 17:37:44 +01:00
// For DB
implementation("io.quarkus:quarkus-hibernate-orm:3.6.4")
implementation("io.quarkus:quarkus-hibernate-orm-panache-kotlin:3.6.4")
2024-01-03 23:17:55 +01:00
implementation("io.quarkus:quarkus-hibernate-validator:3.6.4")
2024-01-03 23:47:27 +01:00
implementation("io.quarkiverse.jdbc:quarkus-jdbc-sqlite:3.0.7")
2024-01-03 17:37:44 +01:00
2024-01-02 19:29:16 +01:00
developmentOnly("org.springframework.boot:spring-boot-devtools")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
2024-01-03 23:17:55 +01:00
configurations.all {
exclude(group = "org.jboss.logmanager", module = "jboss-logmanager")
}
2024-01-02 19:29:16 +01:00
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "21"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}