[#21] feat: buildSrc 적용

- gradle 설정 중 plugin 이름, 버전 관리용 object class 적용
This commit is contained in:
Hanbin Lee
2022-11-04 02:38:09 +09:00
parent 5cc9a12af7
commit 92ff0eabd9
3 changed files with 27 additions and 11 deletions

View File

@@ -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

View File

@@ -0,0 +1,7 @@
repositories {
mavenCentral()
}
plugins {
`kotlin-dsl`
}

View 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"
}
}