From b06f7cb365e82edc67018cd402a479c65decf5cb Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Tue, 9 Nov 2021 17:33:56 +0800 Subject: [PATCH] shadowjar --- build.gradle | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/build.gradle b/build.gradle index 20af079..140c3c5 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,12 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.github.jengelman.gradle.plugins:shadow:5.0.0' + } +} + plugins { id 'java' } @@ -21,3 +30,26 @@ dependencies { test { 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) +}