-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
40 lines (33 loc) · 1004 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
plugins {
id "java-library-distribution"
id "java"
}
group "ru.pinkgoosik"
version ""
repositories {
mavenCentral()
}
dependencies {
// https://github.com/discord-jda/JDA/releases
implementation("net.dv8tion:JDA:5.1.2") {
exclude module: "opus-java"
}
implementation "dev.masecla:Modrinth4J:2.2.0" // https://github.com/masecla22/Modrinth4J
implementation "ch.qos.logback:logback-classic:1.5.6" // https://mvnrepository.com/artifact/ch.qos.logback/logback-classic
implementation "com.google.code.gson:gson:2.10.1" // https://github.com/google/gson/releases
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 17
}
distZip.shouldRunAfter(build)
jar {
manifest {
attributes "Main-Class": "ru.pinkgoosik.kitsun.DiscordApp",
"Class-Path": configurations.runtimeClasspath.files.collect { "lib/" + it.getName() }.join(' ')
}
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}