/
build.gradle.kts
54 lines (43 loc) · 1.64 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
import com.github.gmazzo.buildconfig.BuildConfigExtension
plugins {
id("com.github.gmazzo.buildconfig")
}
dependencies {
// Event Manager
api(group = "com.github.philippheuer.events4j", name = "events4j-core")
api(group = "com.github.philippheuer.events4j", name = "events4j-handler-simple")
// HTTP Client (for common feign extensions/interceptors/...)
compileOnly(group = "io.github.openfeign", name = "feign-okhttp")
compileOnly(group = "io.github.openfeign", name = "feign-jackson")
compileOnly(group = "io.github.openfeign", name = "feign-slf4j")
compileOnly(group = "io.github.openfeign", name = "feign-hystrix")
// Jackson (JSON)
api(group = "com.fasterxml.jackson.datatype", name = "jackson-datatype-jsr310")
// Rate-limit buckets for registry
compileOnly(group = "com.bucket4j", name = "bucket4j_jdk8-core")
// Twitch4J Modules
api(project(":twitch4j-auth"))
api(project(":twitch4j-util"))
}
project.extensions.getByType(BuildConfigExtension::class.java).apply {
packageName("com.github.twitch4j.common.config")
className("Twitch4JBuildConstants")
useJavaOutput {
defaultVisibility = true // this removes the public modifier from the generated class
}
forClass(packageName = "com.github.twitch4j.common.config", className = "Twitch4JBuildConstants") {
buildConfigField("String", "VERSION", provider { "\"${project.version}\"" })
}
}
tasks.javadoc {
options {
title = "Twitch4J (v${version}) - Common Module API"
windowTitle = "Twitch4J (v${version}) - Common Module API"
}
}
publishing.publications.withType<MavenPublication> {
pom {
name.set("Twitch4J API - Common Module")
description.set("Common API dependency")
}
}