forked from lsd-consulting/lsd-kotlin-cucumber-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
53 lines (42 loc) · 1.25 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import org.gradle.api.JavaVersion.VERSION_11
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.8.10"
kotlin("plugin.spring") version "1.8.10"
id("java")
id("io.spring.dependency-management") version "1.0.9.RELEASE"
}
group = "io.github.lsd-consulting"
rootProject.version = System.getenv("CI_PIPELINE_ID")
println("Build Version = ${project.version}")
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
allprojects {
group = "io.github.lsd-consulting"
version = rootProject.version
apply(plugin = "io.spring.dependency-management")
apply(plugin = "java")
repositories {
mavenLocal()
mavenCentral()
}
extra["springCloudVersion"] = "2020.0.4"
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
java.sourceCompatibility = VERSION_11
java.targetCompatibility = VERSION_11
java.withJavadocJar()
java.withSourcesJar()
dependencyManagement {
imports {
mavenBom("org.springframework.cloud:spring-cloud-dependencies:${property("springCloudVersion")}")
}
}
}