-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathbuild.gradle.kts
58 lines (55 loc) · 1.8 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
import com.adarshr.gradle.testlogger.TestLoggerExtension
import com.adarshr.gradle.testlogger.theme.ThemeType.STANDARD
import com.vanniktech.maven.publish.MavenPublishPluginExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import com.vanniktech.maven.publish.SonatypeHost
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath(kotlin("gradle-plugin", "1.5.30"))
classpath("com.vanniktech:gradle-maven-publish-plugin:0.17.0")
}
}
plugins {
id("com.adarshr.test-logger") version("3.2.0") apply(true)
}
allprojects {
tasks.withType(JavaCompile::class.java) {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
tasks.withType(KotlinCompile::class.java) {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += "-Xopt-in=kotlin.ExperimentalUnsignedTypes"
}
}
tasks.withType(Task::class) {
project.apply(plugin = "com.adarshr.test-logger")
project.configure<TestLoggerExtension> {
theme = STANDARD
showExceptions = true
showStackTraces = false
showFullStackTraces = false
showCauses = true
slowThreshold = 5000
showSummary = true
showSimpleNames = false
showPassed = true
showSkipped = true
showFailed = true
showOnlySlow = false
showStandardStreams = false
showPassedStandardStreams = false
showSkippedStandardStreams = false
showFailedStandardStreams = true
}
}
pluginManager.withPlugin("com.vanniktech.maven.publish") {
extensions.getByType(MavenPublishPluginExtension::class.java).apply {
sonatypeHost = SonatypeHost.S01
}
}
}