sample-modules/build.gradle.kts

63 lines
1.4 KiB
Plaintext

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
//buildscript {
// repositories {
// mavenCentral()
// }
//}
buildscript {
val springBootVersion = "2.4.2"
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id("org.springframework.boot") version "2.4.2" apply false
id("io.spring.dependency-management") version "1.0.11.RELEASE" apply false
kotlin("jvm") version "1.4.21" apply false
kotlin("plugin.spring") version "1.4.21" apply false
}
allprojects {
group = "com.cubetiqs.modules"
version = "0.0.1-SNAPSHOT"
tasks.withType<JavaCompile> {
sourceCompatibility = "11"
targetCompatibility = "11"
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
}
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)
}
}
}
tasks.withType<org.springframework.boot.gradle.tasks.bundling.BootJar> {
enabled = false
}