-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
46 lines (37 loc) · 954 Bytes
/
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
plugins {
id 'java'
}
group = 'ru.deewend.banallbot'
version = '2.0.0'
repositories {
mavenCentral()
maven {
name 'm2-dv8tion'
url 'https://m2.dv8tion.net/releases'
}
}
dependencies {
implementation('net.dv8tion:JDA:4.4.0_350') {
exclude module: 'opus-java'
exclude module: 'okhttp'
}
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
}
jar {
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
//noinspection GroovyAssignabilityCheck
manifest {
attributes('Main-Class': 'ru.deewend.banallbot.Main')
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
archiveFileName = 'BanAllShadBot.jar'
}
tasks.register('runMain') {
//noinspection GrDeprecatedAPIUsage
main = 'ru.deewend.banallbot.Main'
classpath = sourceSets.main.runtimeClasspath
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'