diff --git a/build.gradle b/build.gradle index 22defe5d..e7acf4dd 100644 --- a/build.gradle +++ b/build.gradle @@ -25,6 +25,19 @@ repositories { } } +tasks.build.doLast { + File export = file('build/libs/LibsDisguises.jar') + File dest = file('dist') + dest.mkdir() + dest.listFiles().each { + it.delete() + } + export.renameTo(new File(dest, "LibsDisguises.jar")) + file('build').delete() + println "Copied LibsDisguises.jar into /dist" + println "LibsDisguises is finished compiling, have a nice day!" +} + file('libs').mkdirs() //Retrieves spigot-1.8.jar server file from link