forked from kotest/kotest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
93 lines (81 loc) · 2.07 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
90
91
92
93
buildscript {
repositories {
mavenCentral()
mavenLocal()
google()
gradlePluginPortal()
}
dependencies {
// To be uncommented if adding any Android project
classpath("com.android.tools.build:gradle:7.0.3")
}
}
plugins {
java
kotlin("multiplatform")
id("java-library")
id("maven-publish")
signing
id("com.adarshr.test-logger")
id("org.jetbrains.dokka")
}
tasks {
javadoc {
}
}
allprojects {
repositories {
mavenCentral()
mavenLocal()
maven("https://oss.sonatype.org/content/repositories/snapshots/")
google()
maven {
url = uri("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev")
}
}
group = "io.kotest"
version = Ci.publishVersion
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + "-Xopt-in=kotlin.RequiresOptIn"
jvmTarget = "1.8"
apiVersion = "1.6"
languageVersion = "1.6"
}
}
tasks.withType<Test> {
useJUnitPlatform()
filter {
isFailOnNoMatchingTests = false
}
testLogging {
showExceptions = true
showStandardStreams = true
events = setOf(
org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED,
org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED,
org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED,
org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_OUT,
org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_ERROR,
)
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
}
}
kotlin {
targets {
jvm {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
}
}
val publications: PublicationContainer = (extensions.getByName("publishing") as PublishingExtension).publications
signing {
useGpgCmd()
if (Ci.isRelease)
sign(publications)
}