-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
60 lines (51 loc) · 1.29 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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
buildscript {
repositories {
jcenter()
mavenCentral()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
}
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
}
plugins {
java
`java-library`
signing
`maven-publish`
kotlin("jvm").version(Libs.kotlinVersion)
}
allprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
group = Libs.org
version = Ci.version
dependencies {
implementation(kotlin("reflect"))
implementation(Libs.Kotest.api)
implementation(Libs.Kotlin.compilerEmbeddable)
implementation(Libs.Tschuchortdev.kotlinCompileTesting)
testImplementation(Libs.Kotest.junit5)
}
tasks.named<Test>("test") {
useJUnitPlatform()
testLogging {
showExceptions = true
showStandardStreams = true
exceptionFormat = TestExceptionFormat.FULL
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
repositories {
mavenLocal()
mavenCentral()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}
}
}
apply("./publish.gradle.kts")