-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
50 lines (48 loc) · 1.25 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
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '7.0.0'
}
version = '1.0.0'
group = "de.erdbeerbaerlp.splatcord2" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
mainClassName = 'de.erdbeerbaerlp.splatcord2.Main'
repositories {
maven {
name 'm2-dv8tion'
url 'https://m2.dv8tion.net/releases'
}
mavenCentral()
maven {
url "https://jitpack.io"
}
}
compileJava.options.encoding = 'UTF-8'
configurations {
embed
compileOnly.extendsFrom(embed)
}
shadowJar {
classifier = ''
configurations = [project.configurations.embed]
}
artifacts {
archives tasks.shadowJar
}
dependencies {
embed("net.dv8tion:JDA:5.0.0-beta.20"){
transitive = true
exclude module: 'opus-java'
}
embed group: 'mysql', name: 'mysql-connector-java', version: '8.0.28'
embed 'com.github.ErdbeerbaerLP:toml4j:wip-SNAPSHOT'
embed group: 'com.google.code.gson', name: 'gson', version: '2.8.9'
embed 'com.fasterxml.jackson.core:jackson-databind:2.14.0'
embed("io.javalin:javalin:5.6.3")
}
jar {
manifest {
attributes(
'Main-Class': mainClassName
)
}
}