mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-15 08:15:37 +00:00
96c89662ec
Implement SystemEndpoint
90 lines
2.8 KiB
Kotlin
90 lines
2.8 KiB
Kotlin
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
plugins {
|
|
val kotlinVersion = "2.0.0"
|
|
id("org.springframework.boot") version "3.3.0"
|
|
id("io.spring.dependency-management") version "1.1.5"
|
|
id("dev.hilla") version "2.5.6"
|
|
kotlin("jvm") version kotlinVersion
|
|
kotlin("plugin.spring") version kotlinVersion
|
|
kotlin("plugin.jpa") version kotlinVersion
|
|
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_22
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom(configurations.annotationProcessor.get())
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
setUrl("https://maven.vaadin.com/vaadin-addons")
|
|
}
|
|
}
|
|
|
|
extra["hillaVersion"] = "2.5.6"
|
|
val springCloudVersion by extra("2023.0.2")
|
|
|
|
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")
|
|
implementation("org.springframework.cloud:spring-cloud-starter")
|
|
|
|
// 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")}")
|
|
mavenBom("org.springframework.cloud:spring-cloud-dependencies:$springCloudVersion")
|
|
}
|
|
}
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile> {
|
|
compilerOptions {
|
|
apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0)
|
|
languageVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0)
|
|
jvmTarget.set(JvmTarget.JVM_22)
|
|
progressiveMode.set(true)
|
|
freeCompilerArgs.add("-Xjsr305=strict")
|
|
}
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|