-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
65 lines (55 loc) · 1.54 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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
id("org.jetbrains.kotlin.jvm") version "1.6.20"
`java-library`
`maven-publish`
}
group = "com.jsoizo"
version = "0.1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
val kotestVersion = "5.5.5"
testImplementation("io.kotest:kotest-runner-junit5:$kotestVersion")
testImplementation("io.kotest:kotest-assertions-core:$kotestVersion")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
testLogging {
events = setOf(
TestLogEvent.FAILED,
TestLogEvent.PASSED,
TestLogEvent.SKIPPED,
TestLogEvent.STANDARD_OUT
)
exceptionFormat = TestExceptionFormat.FULL
showStandardStreams = true
showExceptions = true
showCauses = true
showStackTraces = true
}
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/jsoizo/php-serialize-kt")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("GH_PKG_USER")
password = project.findProperty("gpr.key") as String? ?: System.getenv("GH_PKG_TOKEN")
}
}
}
publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
}
}