/
build.gradle.kts
56 lines (46 loc) · 1.48 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
plugins {
kotlin("jvm") version "1.7.10"
id("org.jetbrains.dokka") version "1.7.10"
}
dependencies {
// Twitch4J Modules
// We use compileOnly so using this library does not require all modules.
// This does mean that using code that references modules not available will crash.
// This shouldn't be an issue as most, if not all, code are extension functions.
compileOnly(project(":twitch4j"))
api(group = "com.github.philippheuer.events4j", name = "events4j-kotlin", version = "0.10.0")
// Kotlin coroutines
api(group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version = "1.6.3")
testImplementation(group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-test", version = "1.6.3")
testImplementation(project(":twitch4j"))
}
tasks.javadocJar {
from(tasks.dokkaJavadoc)
}
tasks.dokkaJavadoc {
moduleName.set("Twitch4J (v${version}) - Kotlin extension functions")
dokkaSourceSets {
configureEach {
jdkVersion.set(8)
sourceLink {
localDirectory.set(file("src/main/kotlin"))
remoteUrl.set(uri("https://github.com/twitch4j/twitch4j/tree/master/kotlin/src/main/kotlin").toURL())
remoteLineSuffix.set("#L")
}
externalDocumentationLink {
url.set(uri("https://twitch4j.github.io/javadoc/").toURL())
}
}
}
}
tasks.javadoc {
options {
exclude("**/*.kt")
}
}
publishing.publications.withType<MavenPublication> {
pom {
name.set("Twitch4J API - Kotlin extension functions")
description.set("Twitch4J Kotlin extension functions")
}
}