This repository has been archived by the owner on Jun 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
128 lines (104 loc) · 3.23 KB
/
build.gradle
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
plugins {
id 'java'
id 'org.parchmentmc.writtenbooks' version '0.5.+'
id 'maven-publish'
id 'com.apollographql.apollo' version '2.5.9'
id 'com.github.johnrengelman.shadow' version '7.0.0'
}
project.group = 'org.parchmentmc'
writtenbooks {
githubRepo = 'ParchmentMC/Nitwit'
}
repositories {
mavenCentral()
maven {
name 'dv8tion'
url 'https://m2.dv8tion.net/releases'
}
maven {
name 'Minecraft'
url 'https://libraries.minecraft.net'
}
}
dependencies {
implementation 'com.apollographql.apollo:apollo-runtime:2.5.9' // Apollo (GraphQL)
implementation 'com.apollographql.apollo:apollo-rx3-support:2.5.9' // Apollo support for RxJava3
implementation 'io.reactivex.rxjava3:rxjava:3.0.13' // RxJava3
implementation 'org.kohsuke:github-api:1.131' // GitHub API in Java
implementation 'io.jsonwebtoken:jjwt-api:0.11.2' // JJWT
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.2' // impl of JJWT's API
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.2' // JJWT Jackson support
implementation 'com.squareup.okhttp3:okhttp:4.9.0' // OkHttp3
implementation 'com.mojang:brigadier:1.0.18' // Brigadier
implementation('net.dv8tion:JDA:4.3.0_289') { // JDA
exclude module: 'opus-java'
}
implementation 'org.spongepowered:configurate-hocon:4.1.1' // Configurate
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
}
java {
toolchain.languageVersion = JavaLanguageVersion.of(16)
withSourcesJar()
}
apollo {
customTypeMapping = [
"DateTime": "java.time.OffsetDateTime",
"URI" : "java.net.URI"
]
}
jar {
manifest.attributes([
'Main-Class': 'org.parchmentmc.nitwit.Main'
])
preserveFileTimestamps = false
reproducibleFileOrder = true
}
sourcesJar {
preserveFileTimestamps = false
reproducibleFileOrder = true
}
def relocateShadowJar = tasks.register("relocateShadowJar", ConfigureShadowRelocation) {
target = tasks.shadowJar
prefix = "org.parchmentmc.nitwit.shadow"
}
shadowJar {
preserveFileTimestamps = false
reproducibleFileOrder = true
includeEmptyDirs = false
exclude 'META-INF/annotations/**'
exclude 'META-INF/maven/**'
exclude 'META-INF/proguard/**'
exclude 'META-INF/LICENSE*'
exclude 'META-INF/NOTICE*'
mergeServiceFiles()
dependsOn relocateShadowJar
}
tasks.assemble.dependsOn tasks.shadowJar
test {
useJUnitPlatform()
}
publishing {
publications.withType(MavenPublication).configureEach {
pom {
name = 'Nitwit'
description = 'GitHub App for managing Pull Requests to the Parchment mappings repository'
organization {
name = 'ParchmentMC'
url = 'https://github.com/ParchmentMC'
}
licenses {
license {
name = 'MIT'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
name = "sciwhiz12"
email = "[email protected]"
}
}
}
}
}