2021-08-07 09:21:08 +07:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
plugins {
|
2022-12-23 09:07:39 +07:00
|
|
|
id("org.springframework.boot") version "3.0.1" apply false
|
2022-10-21 20:24:33 +07:00
|
|
|
id("io.spring.dependency-management") version "1.1.0" apply false
|
2022-11-29 09:10:27 +07:00
|
|
|
kotlin("jvm") version "1.7.22" apply false
|
2022-12-05 20:52:50 +07:00
|
|
|
kotlin("plugin.spring") version "1.7.22" apply false
|
2023-01-16 14:05:54 +07:00
|
|
|
kotlin("plugin.jpa") version "1.8.0" apply false
|
2023-01-10 09:05:51 +07:00
|
|
|
id("com.netflix.dgs.codegen") version "5.6.5" apply false
|
2021-08-07 09:21:08 +07:00
|
|
|
}
|
|
|
|
|
2021-08-08 12:33:34 +07:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
2022-05-27 12:30:12 +07:00
|
|
|
mavenCentral()
|
2021-08-08 12:33:34 +07:00
|
|
|
}
|
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
|
|
|
|
2022-05-27 12:30:12 +07:00
|
|
|
val javaVersion = "17"
|
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
|
|
|
}
|