Skip to content

Commit

Permalink
chore :: buildSrc 분리와 query dsl plugin , dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
esperar committed Jul 6, 2023
1 parent 13f803e commit 4d4e1b7
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 9 deletions.
19 changes: 17 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import com.dotori.Dependencies
import com.dotori.PluginVersions
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id("org.springframework.boot") version PluginVersions.SPRING_BOOT_VERSION
id("io.spring.dependency-management") version PluginVersions.SPRING_MANAGE_VERSION
id("com.ewerk.gradle.plugins.querydsl") version PluginVersions.QUERY_DSL_PLUGIN_VERSION

kotlin("jvm") version PluginVersions.JVM_VERSION
kotlin("plugin.spring") version PluginVersions.SPRING_PLUG_IN_VERSION
kotlin("plugin.jpa") version PluginVersions.JPA_VERSION
kotlin("kapt") version PluginVersions.KAPT_VERSION
idea
}

group = "com.dotori"
Expand Down Expand Up @@ -43,6 +45,8 @@ dependencies {
implementation(Dependencies.AWS_SES)
implementation(Dependencies.KOTLIN_SES)
implementation(Dependencies.SPRING_CLOUD)
implementation(Dependencies.QUERY_DSL)
implementation(Dependencies.QUERY_DSL_APT)
}

tasks.withType<KotlinCompile> {
Expand All @@ -56,6 +60,14 @@ tasks.withType<Test> {
useJUnitPlatform()
}

idea {
module {
val kaptMain = file("build/generated/source/kapt/main")
sourceDirs.add(kaptMain)
generatedSourceDirs.add(kaptMain)
}
}

buildscript {
repositories {
maven {
Expand All @@ -66,4 +78,7 @@ buildscript {
classpath(Dependencies.KOTEST_PLUG_IN)
}
}



apply(plugin = "io.kotest")
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.dotori

object Dependencies {

// spring
Expand Down Expand Up @@ -44,4 +42,8 @@ object Dependencies {
const val AWS_SES = "com.amazonaws:aws-java-sdk-ses:${DependencyVersions.AWS_SES_VERSION}"
const val KOTLIN_SES = "org.springframework.cloud:spring-cloud-starter-aws:${DependencyVersions.KOTLIN_SES_VERSION}"

// querydsl
const val QUERY_DSL = "com.querydsl:querydsl-jpa:${DependencyVersions.QUERY_DSL_VERSION}"
const val QUERY_DSL_APT = "com.querydsl:querydsl-apt:${DependencyVersions.QUERY_DSL_APT_VERSION}:jpa"

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.dotori

object DependencyVersions {

// spring
Expand All @@ -22,4 +20,8 @@ object DependencyVersions {
// aws
const val AWS_SES_VERSION = "1.12.347"
const val KOTLIN_SES_VERSION = "0.16.0"

// querydsl
const val QUERY_DSL_VERSION = "5.0.0"
const val QUERY_DSL_APT_VERSION = "5.0.0"
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.dotori

object PluginVersions {
const val SPRING_BOOT_VERSION = "2.7.5"
const val SPRING_MANAGE_VERSION = "1.0.15 RELEASE"
const val SPRING_MANAGE_VERSION = "1.0.15.RELEASE"
const val JVM_VERSION = "1.6.21"
const val SPRING_PLUG_IN_VERSION = "1.6.21"
const val JPA_VERSION = "1.6.21"
const val KOTEST_PLUG_IN_VERSION = "0.4.10"
const val KAPT_VERSION = "1.7.10"
const val QUERY_DSL_PLUGIN_VERSION = "1.0.10"
}

0 comments on commit 4d4e1b7

Please sign in to comment.