This repository has been archived by the owner on Feb 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
89 lines (79 loc) · 1.94 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
buildscript {
repositories {
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`
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotest.multiplatform)
}
repositories {
mavenLocal()
mavenCentral()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}
}
group = "io.kotest.extensions"
version = Ci.version
kotlin {
sourceSets.all {
languageSettings {
apiVersion = libs.versions.kotlinApiTarget.get()
languageVersion = libs.versions.kotlinApiTarget.get()
}
}
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(libs.versions.gradleDaemonJvm.get()))
}
jvm {
@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
jvmTarget.set(JvmTarget.fromTarget(libs.versions.jvmMinTarget.get()))
}
}
js(IR) {
browser()
nodejs()
}
sourceSets {
val commonMain by getting {
dependencies {
implementation(libs.kotest.assertions.core)
implementation(libs.konform)
}
}
val commonTest by getting {
dependencies {
implementation(libs.kotest.framework.engine)
}
}
val jvmTest by getting {
dependencies {
implementation(libs.kotest.runner.junit5)
}
}
}
}
tasks.named<Test>("jvmTest") {
useJUnitPlatform()
testLogging {
showExceptions = true
showStandardStreams = true
exceptionFormat = TestExceptionFormat.FULL
}
}
apply(from = "./publish-mpp.gradle.kts")