forked from GeyserMC/GeyserDiscordBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
107 lines (82 loc) · 2.4 KB
/
build.gradle
File metadata and controls
107 lines (82 loc) · 2.4 KB
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
plugins {
id 'java-library'
id 'application'
id("com.apollographql.apollo").version("4.0.0")
}
group 'org.rtm516.discordbot'
version '3.0'
repositories {
// mavenLocal()
mavenCentral()
maven {
url 'https://jitpack.io'
}
maven {
url 'https://repo.opencollab.dev/main'
}
maven {
url 'https://m2.chew.pro/releases/'
}
maven {
url 'https://m2.chew.pro/snapshots/'
}
maven {
url 'https://repo.rtm516.co.uk/main/'
}
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3'
// JDA
implementation 'net.dv8tion:JDA:5.0.1'
implementation 'pw.chew:jda-chewtils:2.0'
// Logging
implementation 'ch.qos.logback:logback-classic:1.5.6'
implementation 'org.slf4j:slf4j-api:2.0.13'
// Json for web requests
implementation 'org.json:json:20240303'
// Database implementations
implementation 'com.mysql:mysql-connector-j:9.0.0'
implementation 'org.xerial:sqlite-jdbc:3.46.0.0'
// Pinging java and bedrock servers
implementation 'com.github.rtm516:minecraft-server-ping:c61c496104'
implementation 'com.nukkitx.protocol:bedrock-common:2.9.17-SNAPSHOT'
implementation 'org.reflections:reflections:0.10.2'
implementation 'commons-net:commons-net:3.11.1'
// Github API
implementation 'org.kohsuke:github-api:1.324'
// For adding users to the user cache in JDA
implementation 'net.sf.trove4j:core:3.1.0'
// GraphQL
implementation 'com.apollographql.java:client:0.0.2'
}
apollo {
service("service") {
packageName.set("com.rtm516.discordbot.graphql")
generateKotlinModels.set(false)
}
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archiveFileName = "${project.name}.jar"
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest {
attributes (
'Class-Path': configurations.runtimeClasspath.files.collect { it.getName() }.join(' '),
'Main-Class': 'org.rtm516.discordbot.DiscordBot'
)
}
}
// Allow running with `./gradlew run` task
application {
mainClass = 'org.rtm516.discordbot.DiscordBot'
}
test {
useJUnitPlatform()
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}