2024-09-25 16:50:58 +09:00
|
|
|
plugins {
|
|
|
|
|
kotlin("jvm") version "1.9.25"
|
|
|
|
|
kotlin("plugin.spring") version "1.9.25"
|
|
|
|
|
id("org.springframework.boot") version "3.3.4"
|
|
|
|
|
id("io.spring.dependency-management") version "1.1.6"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
group = "kr.lunaticbum.back"
|
2024-10-10 11:11:25 +09:00
|
|
|
version = "0.0.7-SNAPSHOT"
|
2024-09-25 16:50:58 +09:00
|
|
|
|
|
|
|
|
java {
|
|
|
|
|
toolchain {
|
|
|
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
|
compileOnly {
|
|
|
|
|
extendsFrom(configurations.annotationProcessor.get())
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
|
mavenCentral()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
// implementation ("jakarta.servlet:jakarta.servlet-api") //스프링부트 3.0 이상
|
|
|
|
|
// implementation ("jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api") //스프링부트 3.0 이상
|
|
|
|
|
// implementation ("org.glassfish.web:jakarta.servlet.jsp.jstl") //스프링부트 3.0 이상
|
2024-09-25 18:24:47 +09:00
|
|
|
implementation ("org.slf4j:jcl-over-slf4j")
|
|
|
|
|
// implementation ("org.springframework.boot:spring-boot-starter-batch")
|
|
|
|
|
implementation ("org.springframework.boot:spring-boot-starter-quartz")
|
2024-10-07 16:14:03 +09:00
|
|
|
|
2024-09-25 18:24:47 +09:00
|
|
|
implementation ("com.google.code.gson:gson:2.11.0")
|
2024-09-25 16:50:58 +09:00
|
|
|
implementation ("org.apache.tomcat.embed:tomcat-embed-jasper")
|
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-data-mongodb-reactive")
|
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-web")
|
2024-09-25 18:24:47 +09:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-webflux")
|
2024-09-25 16:50:58 +09:00
|
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
|
|
|
|
|
implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
|
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
|
2024-10-04 14:53:37 +09:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
|
2024-10-10 17:37:22 +09:00
|
|
|
implementation("nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect")
|
2024-10-11 17:17:57 +09:00
|
|
|
implementation ("org.jsoup:jsoup:1.18.1")
|
2024-10-05 19:15:51 +09:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-security")
|
2024-09-25 16:50:58 +09:00
|
|
|
compileOnly("org.projectlombok:lombok")
|
|
|
|
|
runtimeOnly("org.mariadb.jdbc:mariadb-java-client")
|
|
|
|
|
annotationProcessor("org.projectlombok:lombok")
|
|
|
|
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
|
|
|
|
testImplementation("io.projectreactor:reactor-test")
|
|
|
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
|
|
|
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-10 17:37:22 +09:00
|
|
|
|
2024-09-25 16:50:58 +09:00
|
|
|
kotlin {
|
|
|
|
|
compilerOptions {
|
|
|
|
|
freeCompilerArgs.addAll("-Xjsr305=strict")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
tasks.withType<org.gradle.jvm.tasks.Jar>() {
|
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
|
|
|
exclude("META-INF/BC1024KE.RSA", "META-INF/BC1024KE.SF", "META-INF/BC1024KE.DSA")
|
|
|
|
|
exclude("META-INF/BC2048KE.RSA", "META-INF/BC2048KE.SF", "META-INF/BC2048KE.DSA")
|
|
|
|
|
}
|
|
|
|
|
tasks.withType<Test> {
|
|
|
|
|
useJUnitPlatform()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks.jar {
|
|
|
|
|
manifest {
|
|
|
|
|
attributes["Main-Class"] = "kr.lunaticbum.back.lun.LunApplicationKt"
|
|
|
|
|
}
|
|
|
|
|
configurations["compileClasspath"].forEach { file: File ->
|
|
|
|
|
from(zipTree(file.absoluteFile))
|
|
|
|
|
}
|
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.jar {
|
|
|
|
|
|
|
|
|
|
// Otherwise you'll get a "No main manifest attribute" error
|
|
|
|
|
manifest {
|
|
|
|
|
attributes["Main-Class"] = "kr.lunaticbum.back.lun.LunApplicationKt"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// To avoid the duplicate handling strategy error
|
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
|
|
|
|
|
|
|
|
// To add all of the dependencies otherwise a "NoClassDefFoundError" error
|
|
|
|
|
from(sourceSets.main.get().output)
|
|
|
|
|
|
|
|
|
|
dependsOn(configurations.runtimeClasspath)
|
|
|
|
|
from({
|
|
|
|
|
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|