-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
67 lines (54 loc) · 2.07 KB
/
build.gradle.kts
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
/*
* Custom bot for the Hiro Akiba fan server on discord
* Copyright (C) 2021 Duncan "duncte123" Sterken
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import org.gradle.api.tasks.wrapper.Wrapper.DistributionType
plugins {
java
application
id("com.github.johnrengelman.shadow") version("7.1.2")
}
group = "me.duncte123"
version = "1.0-SNAPSHOT"
application {
mainClass.set("$group.hirobot.Hiro")
}
repositories {
mavenCentral()
maven("https://m2.dv8tion.net/releases")
jcenter()
}
dependencies {
implementation(group = "net.dv8tion", name = "JDA", version = "4.2.1_254")
implementation(group = "com.jagrosh", name = "jda-utilities-command", version = "3.0.5")
implementation(group = "com.fasterxml.jackson.core", name = "jackson-databind", version = "2.10.1")
implementation(group = "ch.qos.logback", name = "logback-classic", version = "1.2.3")
implementation(group = "net.sf.trove4j", name = "trove4j", version = "3.0.3")
implementation(group = "com.zaxxer", name = "HikariCP", version = "3.4.1")
implementation(group = "org.xerial", name = "sqlite-jdbc", version = "3.30.1")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.isIncremental = true
options.compilerArgs = listOf("-Xlint:deprecation", "-Xlint:unchecked")
}
configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_11
}
tasks.withType<Wrapper> {
distributionType = DistributionType.ALL
gradleVersion = "7.4.2"
}