[#21] feat: buildSrc 적용
- gradle 설정 중 plugin 이름, 버전 관리용 object class 적용
This commit is contained in:
@@ -1,17 +1,11 @@
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("org.springframework.boot") version "2.7.0"
|
||||
id("io.spring.dependency-management") version "1.0.11.RELEASE"
|
||||
kotlin("jvm") version "1.6.21"
|
||||
kotlin("plugin.spring") version "1.6.21" apply false // TODO: apply false what?
|
||||
kotlin("plugin.jpa") version "1.6.21" apply false
|
||||
id(Plugins.SPRING_BOOT) version Plugins.SPRING_BOOT_VERSION
|
||||
id(Plugins.SPRING_DEPENDENCY_MANAGEMENT) version Plugins.SPRING_DEPENDENCY_MANAGEMENT_VERSION
|
||||
kotlin(Plugins.Kotlin.JVM) version Plugins.Kotlin.VERSION
|
||||
kotlin(Plugins.Kotlin.SPRING) version Plugins.Kotlin.VERSION apply false // TODO: apply false what?
|
||||
kotlin(Plugins.Kotlin.JPA) version Plugins.Kotlin.VERSION apply false
|
||||
}
|
||||
|
||||
java.sourceCompatibility = JavaVersion.VERSION_17
|
||||
|
||||
7
buildSrc/build.gradle.kts
Normal file
7
buildSrc/build.gradle.kts
Normal file
@@ -0,0 +1,7 @@
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
plugins {
|
||||
`kotlin-dsl`
|
||||
}
|
||||
15
buildSrc/src/main/kotlin/Plugins.kt
Normal file
15
buildSrc/src/main/kotlin/Plugins.kt
Normal file
@@ -0,0 +1,15 @@
|
||||
object Plugins {
|
||||
const val SPRING_BOOT_VERSION = "2.7.0"
|
||||
const val SPRING_BOOT = "org.springframework.boot"
|
||||
|
||||
const val SPRING_DEPENDENCY_MANAGEMENT_VERSION = "1.0.11.RELEASE"
|
||||
const val SPRING_DEPENDENCY_MANAGEMENT = "io.spring.dependency-management"
|
||||
|
||||
object Kotlin {
|
||||
const val VERSION = "1.6.21"
|
||||
|
||||
const val JVM = "jvm"
|
||||
const val SPRING = "plugin.spring"
|
||||
const val JPA = "plugin.jpa"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user