-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
102 lines (85 loc) · 2.5 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
100
101
102
plugins {
jacoco
`java-library`
`maven-publish`
alias(libs.plugins.org.jetbrains.kotlin.jvm)
alias(libs.plugins.ktfmt.gradle)
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "org.audux.bgg"
artifactId = "bggclient"
version = "0.5.0"
pom {
name = "Unofficial JVM BGG client"
description = "Wrapper around the Board Game Geek's XML1 and XML2 APIs"
url = "https://github.com/Bram--/bggclient"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http:https://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = "bram--"
name = "Bram Wijnands"
email = "[email protected]"
}
}
scm {
connection = "scm:git:git:https://[email protected]:Bram--/bggclient.git"
developerConnection = "scm:git:ssh:[email protected]:Bram--/bggclient.git"
url = "https://github.com/Bram--/bggclient"
}
}
from(components["java"])
}
}
}
ktfmt {
kotlinLangStyle()
removeUnusedImports.set(true)
}
sourceSets { main { kotlin { exclude("examples/") } } }
repositories { mavenCentral() }
dependencies {
api(libs.kotlin.coroutines.jdk8)
implementation(libs.jackson.jsr310)
implementation(libs.jackson.kotlin)
implementation(libs.jackson.xml)
implementation(libs.javax.xml.stream)
implementation(libs.kermit)
implementation(libs.kotlin.serialization)
implementation(libs.ktor.core)
implementation(libs.ktor.client)
implementation(libs.slf4j)
// Testing dependencies.
testApi(libs.ktor.client.mock)
testImplementation(libs.junit5.jupiter)
testImplementation(libs.junit5.params)
testImplementation(libs.truth)
testRuntimeOnly(libs.junit5.engine)
}
jacoco {
toolVersion = "0.8.9"
reportsDirectory = layout.buildDirectory.dir("jacoco")
}
tasks {
test {
useJUnitPlatform()
finalizedBy(jacocoTestReport)
}
jacocoTestReport {
dependsOn(test)
reports {
xml.required.set(true)
html.required.set(true)
}
}
}