-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (62 loc) · 1.84 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
plugins {
id 'java'
}
group 'org.phxgg'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven {
url 'https://m2.dv8tion.net/releases'
}
maven {
url 'https://jitpack.io'
}
maven {
url "https://maven.topi.wtf/releases"
}
maven {
url "https://maven.lavalink.dev/releases"
}
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
implementation 'net.iharder:base64:2.3.9'
implementation 'net.dv8tion:JDA:5.2.1'
implementation 'dev.arbjerg:lavaplayer:2.2.2'
implementation 'dev.arbjerg:lavaplayer-ext-youtube-rotator:2.2.2'
implementation 'dev.lavalink.youtube:v2:1.11.1'
implementation 'com.github.topi314.lavasrc:lavasrc:4.3.0'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.15.0'
implementation 'com.google.code.gson:gson:2.10'
runtimeOnly 'ch.qos.logback:logback-classic:1.5.6'
}
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'bot.Main'
}
archiveClassifier = 'all'
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
duplicatesStrategy DuplicatesStrategy.EXCLUDE
}
task fatJarDev(type: Jar) {
manifest {
attributes 'Main-Class': 'bot.Main'
}
archiveClassifier = 'dev'
// configurations.implementation.setCanBeResolved(true)
from {
// configurations.implementation.collect { it.isDirectory() ? it : zipTree(it) }
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
duplicatesStrategy DuplicatesStrategy.EXCLUDE
}
test {
useJUnitPlatform()
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17