/
build.gradle.kts
46 lines (38 loc) · 1.01 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
// Plugins
plugins {
id("com.apollographql.apollo") version "2.5.12"
}
// Dependencies
dependencies {
// GraphQL
api(group = "com.apollographql.apollo", name = "apollo-runtime", version = "2.5.12")
api(group = "org.jetbrains", name = "annotations")
// Hystrix
api(group = "com.netflix.hystrix", name = "hystrix-core")
// Caching
api(group = "com.github.ben-manes.caffeine", name = "caffeine")
// Twitch4J Modules
api(project(":twitch4j-common"))
api(project(":twitch4j-auth"))
}
tasks {
withType<io.freefair.gradle.plugins.lombok.tasks.Delombok> {
dependsOn("generateMainServiceApolloSources")
}
withType<Javadoc> {
// Ignore auto-generated files from apollo graphql
exclude("com/github/twitch4j/graphql/internal/**")
}
javadoc {
options {
title = "Twitch4J (v${version}) - GraphQL Module"
windowTitle = "Twitch4J (v${version}) - GraphQL Module"
}
}
}
publishing.publications.withType<MavenPublication> {
pom {
name.set("Twitch4J GraphQL Module")
description.set("GraphQL dependency")
}
}