58 lines
1.9 KiB
Kotlin
58 lines
1.9 KiB
Kotlin
plugins {
|
|
kotlin("jvm") version "2.2.21"
|
|
kotlin("plugin.spring") version "2.2.21"
|
|
id("org.springframework.boot") version "4.0.1"
|
|
id("io.spring.dependency-management") version "1.1.7"
|
|
kotlin("plugin.jpa") version "2.2.21"
|
|
}
|
|
|
|
group = "com.android"
|
|
version = "0.0.1-SNAPSHOT"
|
|
description = "TrisolarisServer"
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(19)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
|
|
implementation("org.springframework.boot:spring-boot-starter-flyway")
|
|
implementation("org.springframework.boot:spring-boot-starter-validation")
|
|
implementation("org.springframework.boot:spring-boot-starter-webmvc")
|
|
implementation("org.springframework.boot:spring-boot-starter-websocket")
|
|
implementation("org.flywaydb:flyway-database-postgresql")
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
implementation("tools.jackson.module:jackson-module-kotlin")
|
|
implementation("org.springframework.boot:spring-boot-starter-security")
|
|
runtimeOnly("org.postgresql:postgresql")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-data-jpa-test")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-flyway-test")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-validation-test")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-webmvc-test")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-websocket-test")
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
freeCompilerArgs.addAll("-Xjsr305=strict", "-Xannotation-default-target=param-property")
|
|
}
|
|
}
|
|
|
|
allOpen {
|
|
annotation("jakarta.persistence.Entity")
|
|
annotation("jakarta.persistence.MappedSuperclass")
|
|
annotation("jakarta.persistence.Embeddable")
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|