Updated build module

This commit is contained in:
Sambo Chea 2021-01-26 22:09:48 +07:00
parent 404d626194
commit 7cd9ccd87b

View File

@ -1,5 +1,11 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
//buildscript {
// repositories {
// mavenCentral()
// }
//}
buildscript { buildscript {
val springBootVersion = "2.4.2" val springBootVersion = "2.4.2"
@ -17,24 +23,21 @@ plugins {
id("io.spring.dependency-management") version "1.0.11.RELEASE" apply false id("io.spring.dependency-management") version "1.0.11.RELEASE" apply false
kotlin("jvm") version "1.4.21" apply false kotlin("jvm") version "1.4.21" apply false
kotlin("plugin.spring") version "1.4.21" apply false kotlin("plugin.spring") version "1.4.21" apply false
kotlin("plugin.jpa") version "1.4.21" apply false
} }
allprojects { allprojects {
group = "com.cubetiqs" group = "com.cubetiqs.modules"
version = "0.0.1-SNAPSHOT" version = "0.0.1-SNAPSHOT"
val javaVersion = "11"
tasks.withType<JavaCompile> { tasks.withType<JavaCompile> {
sourceCompatibility = javaVersion sourceCompatibility = "11"
targetCompatibility = javaVersion targetCompatibility = "11"
} }
tasks.withType<KotlinCompile> { tasks.withType<KotlinCompile> {
kotlinOptions { kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict") freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = javaVersion jvmTarget = "11"
} }
} }
} }
@ -53,7 +56,6 @@ subprojects {
mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES) mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
} }
} }
} }
tasks.withType<org.springframework.boot.gradle.tasks.bundling.BootJar> { tasks.withType<org.springframework.boot.gradle.tasks.bundling.BootJar> {