-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
58 lines (49 loc) · 1.76 KB
/
build.gradle
File metadata and controls
58 lines (49 loc) · 1.76 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group = 'nl.finnt730'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
flatDir {
dirs 'lib'
}
}
dependencies {
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
implementation name: 'json-structure-lib'
implementation 'org.xerial:sqlite-jdbc:3.44.1.0'
implementation 'com.google.code.gson:gson:2.10.1'
implementation("net.dv8tion:JDA:+") { // replace $version with the latest version
// Optionally disable audio natives to reduce jar size by excluding `opus-java` and `tink`
// Gradle DSL:
// exclude module: 'opus-java' // required for encoding audio into opus, not needed if audio is already provided in opus encoding
// exclude module: 'tink' // required for encrypting and decrypting audio
// Kotlin DSL:
// exclude(module="opus-java") // required for encoding audio into opus, not needed if audio is already provided in opus encoding
// exclude(module="tink") // required for encrypting and decrypting audio
}
// Logging dependencies
implementation 'org.slf4j:slf4j-api:2.0.9'
implementation 'ch.qos.logback:logback-classic:1.4.14'
implementation 'ch.qos.logback:logback-core:1.4.14'
}
test {
useJUnitPlatform()
}
// ShadowJar configuration (optional, but ensures all dependencies are included)
shadowJar {
mergeServiceFiles()
// Optionally, you can set the base name, classifier, etc.
// archiveBaseName.set('ForgeBot')
// archiveClassifier.set('all')
}
jar {
manifest {
attributes(
'Main-Class': 'nl.finnt730.Main' // Ensure this matches your main class
)
}
}