-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
60 lines (51 loc) · 1.37 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("checkstyle")
}
group = "ovh.neziw"
version = "1.0.1"
tasks.withType<JavaCompile> {
options.compilerArgs = listOf("-Xlint:deprecation")
options.encoding = "UTF-8"
}
tasks.withType<ShadowJar> {
archiveFileName.set("${project.name} ${project.version}.jar")
exclude(
"org/intellij/lang/annotations/**",
"org/jetbrains/annotations/**",
"org/checkerframework/**",
"META-INF/**",
"javax/**"
)
manifest {
attributes.set("Main-Class", "ovh.neziw.bot.BotBootstrap")
}
mergeServiceFiles()
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
checkstyle {
toolVersion = "10.20.1"
maxWarnings = 0
}
repositories {
gradlePluginPortal()
mavenCentral()
mavenLocal()
maven("https://storehouse.okaeri.eu/repository/maven-public/")
}
dependencies {
implementation("net.dv8tion:JDA:5.2.1")
implementation("com.google.code.gson:gson:2.11.0")
implementation("redis.clients:jedis:5.2.0")
implementation("eu.okaeri:okaeri-configs-yaml-snakeyaml:5.0.5")
implementation("ch.qos.logback:logback-classic:1.5.12")
}
tasks.build {
dependsOn(tasks.shadowJar)
}