Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
134 lines (100 loc) · 2.61 KB
/
Copy pathbuild.gradle
File metadata and controls
134 lines (100 loc) · 2.61 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
plugins {
id 'java-library'
id 'application'
alias libs.plugins.sentry
}
group 'org.geysermc.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 libs.junit.jupiter
testRuntimeOnly libs.junit.launcher
implementation libs.bundles.jda
implementation libs.bundles.logging
// Json for web requests
implementation libs.json
implementation libs.bundles.database
// Pinging java and bedrock servers
implementation libs.bundles.ping
implementation libs.reflections
implementation libs.prettytime
implementation libs.commonsnet
// Parsing HTML
implementation libs.jsoup
// Github API
implementation libs.github
// Basic HTML templating engine
implementation libs.freemarker
// SVG parsing
implementation libs.bundles.batik
// Parses stack traces from text
implementation libs.stackparser
// Reading RSS feeds
implementation libs.rome
// Image processing and OCR
implementation libs.bundles.ocr
// Agolia Search (For Wiki)
implementation libs.algolia
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archiveFileName = "${project.name}.jar"
// Exclude dependency signature files
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest {
attributes (
'Class-Path': configurations.runtimeClasspath.files.collect { it.getName() }.join(' '),
'Main-Class': 'org.geysermc.discordbot.GeyserBot'
)
}
}
// Allow running with `./gradlew run` task
application {
mainClass = 'org.geysermc.discordbot.GeyserBot'
}
tasks {
run {
doFirst {
if (!workingDir.isDirectory()) {
workingDir.mkdir()
}
}
workingDir = project.layout.projectDirectory.dir("run")
}
}
test {
useJUnitPlatform()
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
sentry {
includeSourceContext = System.getenv("SENTRY_AUTH_TOKEN") != null
org = "geysermc"
projectName = "geyserdiscordbot"
authToken = System.getenv("SENTRY_AUTH_TOKEN")
}