77 lines
2.7 KiB
Kotlin
77 lines
2.7 KiB
Kotlin
plugins {
|
|
kotlin("jvm") version "2.3.21"
|
|
kotlin("plugin.spring") version "2.3.21"
|
|
id("org.springframework.boot") version "4.0.6"
|
|
id("io.spring.dependency-management") version "1.1.7"
|
|
kotlin("plugin.jpa") version "2.3.21"
|
|
}
|
|
|
|
group = "net.halfbinary"
|
|
version = "0.0.1-SNAPSHOT"
|
|
description = "scavengerhuntapi"
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom(configurations.annotationProcessor.get())
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
val mariaDriver = "3.5.8"
|
|
val commonsValidator = "1.10.1"
|
|
val jakartaValidation = "3.1.1"
|
|
val jsonWebToken = "0.13.0"
|
|
val springdocUi = "3.0.3"
|
|
val awsSdk = "2.26.0"
|
|
val thumbnailator = "0.4.20"
|
|
implementation("org.springframework.boot:spring-boot-starter-actuator")
|
|
implementation("org.springframework.boot:spring-boot-starter-web")
|
|
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
|
|
implementation("org.springframework.boot:spring-boot-starter-validation")
|
|
implementation("org.springframework.boot:spring-boot-starter-security")
|
|
implementation("jakarta.validation:jakarta.validation-api:$jakartaValidation")
|
|
implementation("org.mariadb.jdbc:mariadb-java-client:${mariaDriver}")
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
implementation("commons-validator:commons-validator:$commonsValidator")
|
|
implementation("io.jsonwebtoken:jjwt-api:$jsonWebToken")
|
|
implementation("io.jsonwebtoken:jjwt-impl:$jsonWebToken")
|
|
implementation("io.jsonwebtoken:jjwt-jackson:$jsonWebToken")
|
|
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:$springdocUi")
|
|
implementation(platform("software.amazon.awssdk:bom:$awsSdk"))
|
|
implementation("software.amazon.awssdk:s3")
|
|
implementation("net.coobird:thumbnailator:$thumbnailator")
|
|
developmentOnly("org.springframework.boot:spring-boot-devtools")
|
|
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-actuator-test")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-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()
|
|
}
|