-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
68 lines (58 loc) · 1.67 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
68
plugins {
java
`maven-publish`
application
alias(libs.plugins.com.github.johnrengelman.shadow) apply true
}
group = "me.koply"
version = "1.0.0-alpha"
description = "Pikap"
dependencies {
implementation(libs.dev.arbjerg.lavaplayer)
implementation(libs.dev.lavalink.youtube.v2)
implementation(libs.org.slf4j.slf4j.simple)
implementation(libs.com.github.kwhat.jnativehook)
implementation(libs.com.github.tomas.langer.chalk)
implementation(libs.net.oneandone.reflections8.reflections8)
implementation(libs.com.github.jncrmx.discord.game.sdk4j)
implementation(libs.org.xerial.sqlite.jdbc)
implementation(libs.com.j256.ormlite.ormlite.core)
implementation(libs.com.j256.ormlite.ormlite.jdbc)
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
application {
mainClass = "me.koply.pikap.Main"
applicationDefaultJvmArgs = listOf("-Dfile.encoding=UTF-8")
}
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
tasks {
jar {
manifest {
attributes["Implementation-Title"] = project.name
attributes["Implementation-Version"] = project.version
attributes["Manifest-Version"] = "1.0"
attributes["Main-Class"] = "me.koply.pikap.Main"
}
}
named<JavaExec>("run") {
standardInput = System.`in`
}
shadowJar {
minimize {
exclude(dependency(libs.org.xerial.sqlite.jdbc.get()))
}
}
compileJava {
options.encoding = Charsets.UTF_8.name()
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
}