spring-graphql-demo/build.gradle.kts

45 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-08-07 09:21:08 +07:00
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "3.0.1" apply false
id("io.spring.dependency-management") version "1.1.0" apply false
kotlin("jvm") version "1.7.22" apply false
kotlin("plugin.spring") version "1.7.22" apply false
kotlin("plugin.jpa") version "1.8.0" apply false
id("com.netflix.dgs.codegen") version "5.6.5" apply false
2021-08-07 09:21:08 +07:00
}
allprojects {
repositories {
2022-05-27 12:30:12 +07:00
mavenCentral()
}
2021-08-07 09:21:08 +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
tasks.withType<JavaCompile> {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
2021-08-07 09:21:08 +07:00
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = javaVersion
}
}
2021-08-07 09:21:08 +07:00
}
subprojects {
apply {
plugin("io.spring.dependency-management")
}
the<io.spring.gradle.dependencymanagement.dsl.DependencyManagementExtension>().apply {
imports {
mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
}
}
}