-
Notifications
You must be signed in to change notification settings - Fork 74
/
build.gradle.kts
69 lines (58 loc) · 1.4 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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
}
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
}
plugins {
id("java")
id("java-library")
id("maven-publish")
id("signing")
alias(libs.plugins.kotlin.jvm)
}
allprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
group = "com.sksamuel.hoplite"
version = Ci.version
dependencies {
testImplementation("io.kotest:kotest-assertions-core:5.5.5")
testImplementation("io.kotest:kotest-runner-junit5:5.5.5")
}
tasks.named<Test>("test") {
useJUnitPlatform()
testLogging {
showExceptions = true
showStandardStreams = true
exceptionFormat = TestExceptionFormat.FULL
}
}
kotlin {
jvmToolchain(11)
compilerOptions.jvmTarget = JvmTarget.JVM_1_8
}
tasks.compileJava {
options.release = 8
}
tasks.compileTestKotlin {
compilerOptions.jvmTarget = JvmTarget.JVM_11
}
tasks.compileTestJava {
options.release = 11
}
repositories {
mavenLocal()
mavenCentral()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}
}
}