-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathbuild.gradle.kts
59 lines (48 loc) · 1.66 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
53
54
55
56
57
58
59
import org.jetbrains.kotlin.gradle.plugin.getKotlinPluginVersion
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
val kotlinVersion = "2.1.0"
kotlin("jvm") version kotlinVersion
}
group = "com.foldright.auto-pipeline"
version = "0.4.0"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation("org.apache.commons:commons-lang3:3.17.0")
/*
* annotation processor dependencies
*/
compileOnly("com.foldright.auto-pipeline:auto-pipeline-annotations:$version")
annotationProcessor("com.foldright.auto-pipeline:auto-pipeline-processor:$version")
/*
* testing dependencies
*/
testImplementation(kotlin("test"))
// https://kotest.io/docs/quickstart
val kotestVersion = "5.9.1"
testImplementation("io.kotest:kotest-runner-junit5-jvm:$kotestVersion")
testImplementation("io.kotest:kotest-assertions-core-jvm:$kotestVersion")
testImplementation("io.kotest:kotest-property-jvm:$kotestVersion")
/*
* dependency constraint by using bom
*/
val kotlinVersion = project.getKotlinPluginVersion()
implementation(platform("org.jetbrains.kotlin:kotlin-bom:${kotlinVersion}"))
implementation(platform("org.junit:junit-bom:5.11.4"))
implementation(platform("org.apache.logging.log4j:log4j-bom:2.24.3"))
}
java.sourceCompatibility = JavaVersion.VERSION_1_8
java.targetCompatibility = JavaVersion.VERSION_1_8
tasks.withType<JavaCompile> {
options.compilerArgs.add("-Xlint:unchecked")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = java.sourceCompatibility.toString()
}
// https://kotest.io/docs/quickstart
tasks.test<Test> {
useJUnitPlatform()
}