shadowjar

This commit is contained in:
A.C.Sukazyo Eyre 2021-11-09 17:33:56 +08:00
parent 66866572c0
commit b06f7cb365
Signed by: Eyre_S
GPG Key ID: EFB47D98FE082FAD

View File

@ -1,3 +1,12 @@
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:5.0.0'
}
}
plugins { plugins {
id 'java' id 'java'
} }
@ -21,3 +30,26 @@ dependencies {
test { test {
useJUnitPlatform() useJUnitPlatform()
} }
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
options.docEncoding = 'UTF-8'
options.charSet = 'UTF-8'
}
tasks.test {
useJUnitPlatform()
}
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'application'
shadowJar {
mainClassName = 'cc.sukazyo.cono.morny.MornyCoeur'
archiveBaseName.set("Morny_Coeur")
archiveVersion.set(version)
}