forked from kotest/kotest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
99 lines (83 loc) · 2.24 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
94
95
96
97
98
99
buildscript {
repositories {
mavenCentral()
mavenLocal()
google()
maven("https://dl.bintray.com/kotlin/kotlin-eap")
maven("https://kotlin.bintray.com/kotlinx")
gradlePluginPortal()
}
dependencies {
// To be uncommented if adding any Android project
classpath("com.android.tools.build:gradle:4.1.3")
}
}
plugins {
java
kotlin("multiplatform") version Libs.kotlinVersion
id("java-library")
id("maven-publish")
signing
id("com.adarshr.test-logger") version Libs.adarshrTestLoggerVersion
id("org.jetbrains.dokka") version Libs.dokkaVersion
// To get versions report, execute:
// Win: .\gradlew.bat dependencyUpdates -Drevision=release
// Other: ./gradlew dependencyUpdates -Drevision=release
id("com.github.ben-manes.versions") version Libs.gradleVersionsPluginVersion
}
tasks {
javadoc {
}
}
// Configure existing Dokka task to output HTML to typical Javadoc directory
//tasks.dokka {
// outputFormat = "html"
// outputDirectory = "$buildDir/javadoc"
// configuration {
// includeNonPublic = false
// skipDeprecated = true
// reportUndocumented = false
// skipEmptyPackages = true
// targets = listOf("JVM")
// platform = "JVM"
// jdkVersion = 8
// }
//}
// apply plugin: "io.kotest"
allprojects {
// apply(plugin = "io.kotest")
repositories {
mavenCentral()
jcenter()
google()
maven("https://kotlin.bintray.com/kotlinx")
maven("https://dl.bintray.com/kotlin/kotlin-eap")
}
group = "io.kotest"
version = Ci.publishVersion
}
kotlin {
targets {
jvm {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + "-Xopt-in=kotlin.RequiresOptIn"
freeCompilerArgs = freeCompilerArgs + "-Xopt-in=kotlin.time.ExperimentalTime"
jvmTarget = "1.8"
apiVersion = "1.4"
}
}
val publications: PublicationContainer = (extensions.getByName("publishing") as PublishingExtension).publications
signing {
useGpgCmd()
if (Ci.isRelease)
sign(publications)
}