-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle.kts
57 lines (44 loc) · 1.54 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
apply {
from("https://raw.githubusercontent.com/ligi/gradle-common/master/versions_plugin_stable_only.gradle")
}
buildscript {
repositories {
jcenter()
maven("https://jitpack.io")
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}")
classpath("com.github.ben-manes:gradle-versions-plugin:${Versions.versions_plugin}")
}
}
subprojects {
repositories {
jcenter()
maven("https://jitpack.io")
maven("https://kotlin.bintray.com/kotlinx")
}
apply(plugin = "jacoco")
apply(plugin = "maven")
apply(plugin = "kotlin")
tasks.withType<Test> {
useJUnitPlatform()
}
configure<JavaPluginExtension> {
withSourcesJar()
withJavadocJar()
}
afterEvaluate {
dependencies {
"implementation"("org.jetbrains.kotlin:kotlin-stdlib:${Versions.kotlin}")
"testImplementation"("org.assertj:assertj-core:3.23.1")
"testImplementation"("org.junit.jupiter:junit-jupiter-api:${Versions.jupiter}")
"testImplementation"("org.junit.jupiter:junit-jupiter-params:${Versions.jupiter}")
"testRuntime"("org.junit.jupiter:junit-jupiter-engine:${Versions.jupiter}")
"testImplementation"("org.jetbrains.kotlin:kotlin-test")
"testImplementation"("io.mockk:mockk:1.12.0")
}
}
val compileTestKotlin by tasks.getting(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
kotlinOptions.jvmTarget = "1.8"
}
}