diff --git a/README.md b/README.md index 459e07c..1a66e6f 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,32 @@ # Sample Modules -- Including parent deps -- Spring Boot + +- Spring Boot with Kotlin - Spring Dependency Management -- Gradle with Kotlin DSL (6.6.1) -- Kotlin Langauge +- Gradle with Kotlin DSL # Development + - Clone the modules + ```shell git clone https://git.cubetiqs.com/CUBETIQ/sample-modules.git --recurse-submodules --remote-submodules ``` ### Add Submodule by using git submodule (Example) + ```shell git submodule add https://git.cubetiqs.com/CUBETIQ/gradle-sample-module-example.git ``` ### Register module in ```settings.gradle.kts``` or ```settings.gradle``` + ```gradle rootProject.name = "sample-modules" include("gradle-sample-module-example") ``` ### Implementation module in ```build.gradle.kts``` + ```gradle implementation(project(":gradle-sample-module-example")) ``` \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index e8b4075..ba9b606 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,33 +1,15 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile -buildscript { - repositories { - mavenCentral() - } -} - plugins { - id("org.springframework.boot") version "2.4.0" apply false - id("io.spring.dependency-management") version "1.0.10.RELEASE" apply false - kotlin("jvm") version "1.4.10" apply false - kotlin("plugin.spring") version "1.4.10" apply false + id("org.springframework.boot") version "2.7.1" apply false + id("io.spring.dependency-management") version "1.0.12.RELEASE" apply false + kotlin("jvm") version "1.7.10" apply false + kotlin("plugin.spring") version "1.7.10" apply false } allprojects { group = "com.cubetiqs.modules" version = "0.0.1-SNAPSHOT" - - tasks.withType { - sourceCompatibility = "11" - targetCompatibility = "11" - } - - tasks.withType { - kotlinOptions { - freeCompilerArgs = listOf("-Xjsr305=strict") - jvmTarget = "11" - } - } } subprojects { @@ -38,4 +20,15 @@ subprojects { apply { plugin("io.spring.dependency-management") } + + tasks.withType { + kotlinOptions { + freeCompilerArgs = listOf("-Xjsr305=strict") + jvmTarget = "17" + } + } + + tasks.withType { + useJUnitPlatform() + } } \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 12d38de..00e33ed 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists