spring-web-modules/build.gradle.kts
CUBETIQ Solution b9d274511f Initial commit
2021-05-18 09:50:46 +07:00

57 lines
1.3 KiB
Plaintext

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
val springBootVersion = "2.4.5"
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id("org.springframework.boot") version "2.4.5" apply false
id("io.spring.dependency-management") version "1.0.11.RELEASE" apply false
kotlin("jvm") version "1.4.32" apply false
kotlin("plugin.spring") version "1.4.32" apply false
kotlin("plugin.jpa") version "1.4.32" apply false
}
allprojects {
group = "com.cubetiqs"
version = "0.0.1-SNAPSHOT"
val javaVersion = "11"
tasks.withType<JavaCompile> {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict", "-Xopt-in=kotlin.RequiresOptIn")
jvmTarget = javaVersion
}
}
}
subprojects {
repositories {
mavenCentral()
}
apply {
plugin("io.spring.dependency-management")
}
the<io.spring.gradle.dependencymanagement.dsl.DependencyManagementExtension>().apply {
imports {
mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
}
}
}