2021-08-07 09:21:08 +07:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
plugins {
|
2022-05-27 09:05:22 +07:00
|
|
|
id("org.springframework.boot") version "2.7.0" apply false
|
2021-08-08 12:33:34 +07:00
|
|
|
id("io.spring.dependency-management") version "1.0.11.RELEASE" apply false
|
2022-05-27 09:06:43 +07:00
|
|
|
kotlin("jvm") version "1.6.21" apply false
|
2022-05-27 09:05:20 +07:00
|
|
|
kotlin("plugin.spring") version "1.6.21" apply false
|
2021-08-08 12:33:34 +07:00
|
|
|
kotlin("plugin.jpa") version "1.5.21" apply false
|
2022-05-27 09:05:18 +07:00
|
|
|
id("com.netflix.dgs.codegen") version "5.1.17" apply false
|
2021-08-07 09:21:08 +07:00
|
|
|
}
|
|
|
|
|
2021-08-08 12:33:34 +07:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
maven { url = uri("https://m.ctdn.net") }
|
|
|
|
}
|
2021-08-07 09:21:08 +07:00
|
|
|
|
2021-08-08 12:33:34 +07:00
|
|
|
group = "com.cubetiqs"
|
|
|
|
version = "0.0.1-SNAPSHOT"
|
2021-08-08 11:01:26 +07:00
|
|
|
|
2021-08-08 12:33:34 +07:00
|
|
|
val javaVersion = "11"
|
2021-08-07 09:21:08 +07:00
|
|
|
|
2021-08-08 12:33:34 +07:00
|
|
|
tasks.withType<JavaCompile> {
|
|
|
|
sourceCompatibility = javaVersion
|
|
|
|
targetCompatibility = javaVersion
|
|
|
|
}
|
2021-08-07 09:21:08 +07:00
|
|
|
|
2021-08-08 12:33:34 +07:00
|
|
|
tasks.withType<KotlinCompile> {
|
|
|
|
kotlinOptions {
|
|
|
|
freeCompilerArgs = listOf("-Xjsr305=strict")
|
|
|
|
jvmTarget = javaVersion
|
|
|
|
}
|
|
|
|
}
|
2021-08-07 09:21:08 +07:00
|
|
|
}
|
|
|
|
|
2021-08-08 12:33:34 +07:00
|
|
|
subprojects {
|
|
|
|
apply {
|
|
|
|
plugin("io.spring.dependency-management")
|
|
|
|
}
|
2021-08-07 19:56:39 +07:00
|
|
|
|
2021-08-08 12:33:34 +07:00
|
|
|
the<io.spring.gradle.dependencymanagement.dsl.DependencyManagementExtension>().apply {
|
|
|
|
imports {
|
|
|
|
mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
|
|
|
|
}
|
|
|
|
}
|
2021-08-07 10:27:34 +07:00
|
|
|
}
|