-
Notifications
You must be signed in to change notification settings - Fork 73
/
build.gradle.kts
73 lines (57 loc) · 1.95 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
apply {
from("https://raw.githubusercontent.com/ligi/gradle-common/master/versions_plugin_stable_only.gradle")
}
buildscript {
repositories {
gradlePluginPortal()
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}")
classpath("com.github.komputing:kethabi:0.3.1")
}
}
subprojects {
repositories {
mavenCentral()
maven("https://jitpack.io")
maven("https://kotlin.bintray.com/kotlinx")
}
apply(plugin = "jacoco")
apply(plugin = "maven-publish")
apply(plugin = "kotlin")
tasks.withType<Test> {
useJUnitPlatform()
}
configure<JavaPluginExtension> {
withSourcesJar()
withJavadocJar()
}
configure<PublishingExtension> {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
afterEvaluate {
dependencies {
"implementation"("org.jetbrains.kotlin:kotlin-stdlib:${Versions.kotlin}")
"testImplementation"("org.assertj:assertj-core:3.24.2")
"testImplementation"("org.junit.jupiter:junit-jupiter-api:${Versions.jupiter}")
"testImplementation"("org.junit.jupiter:junit-jupiter-params:${Versions.jupiter}")
"testRuntimeOnly"("org.junit.jupiter:junit-jupiter-engine:${Versions.jupiter}")
"testImplementation"("org.jetbrains.kotlin:kotlin-test")
"testImplementation"("io.mockk:mockk:1.12.5")
}
}
val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
val compileTestKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}
}