import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { id("org.springframework.boot") version "3.2.2" id("io.spring.dependency-management") version "1.1.4" id("dev.hilla") version "2.5.6" kotlin("jvm") version "1.9.22" kotlin("plugin.spring") version "1.9.22" kotlin("plugin.jpa") version "1.9.22" java } allOpen { annotations("javax.persistence.Entity", "javax.persistence.MappedSuperclass", "javax.persistence.Embedabble") } group = "de.grimsi" version = "2.0.0-SNAPSHOT" description = "gameyfin" java.sourceCompatibility = JavaVersion.VERSION_21 configurations { compileOnly { extendsFrom(configurations.annotationProcessor.get()) } } repositories { mavenCentral() maven { setUrl("https://maven.vaadin.com/vaadin-addons") } } extra["hillaVersion"] = "2.5.6" dependencies { // Spring Boot & Kotlin implementation("org.springframework.boot:spring-boot-starter-actuator") implementation("org.springframework.boot:spring-boot-starter-security") implementation("org.springframework.boot:spring-boot-starter-oauth2-client") implementation("org.springframework.boot:spring-boot-starter-validation") implementation("jakarta.validation:jakarta.validation-api:3.0.2") implementation("org.jetbrains.kotlin:kotlin-reflect") // Hilla api("dev.hilla:hilla-react") api("dev.hilla:hilla-spring-boot-starter") // Logging implementation("io.github.oshai:kotlin-logging-jvm:6.0.3") // Persistence implementation("org.springframework.boot:spring-boot-starter-data-jpa") implementation("com.github.paulcwarren:spring-content-fs-boot-starter:3.0.7") // Development developmentOnly("org.springframework.boot:spring-boot-devtools") annotationProcessor("org.springframework.boot:spring-boot-configuration-processor") runtimeOnly("com.h2database:h2") runtimeOnly("io.micrometer:micrometer-registry-prometheus") testImplementation("org.springframework.boot:spring-boot-starter-test") testImplementation("org.springframework.security:spring-security-test") } dependencyManagement { imports { mavenBom("dev.hilla:hilla-bom:${property("hillaVersion")}") } } tasks.withType { kotlinOptions { freeCompilerArgs += "-Xjsr305=strict" jvmTarget = "21" } } tasks.withType { useJUnitPlatform() }