From f1b63c56b1cbaebf69f1d537e3cbf8c862c50b46 Mon Sep 17 00:00:00 2001 From: AnimeGitB Date: Sat, 9 Jul 2022 16:42:41 +0930 Subject: [PATCH] Replace deprecated gradle properties --- build.gradle | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 45dbd766e..eacc6f642 100644 --- a/build.gradle +++ b/build.gradle @@ -103,7 +103,7 @@ configurations.all { application { // Define the main class for the application - mainClassName = 'emu.grasscutter.Grasscutter' + getMainClass().set('emu.grasscutter.Grasscutter') } @@ -112,8 +112,10 @@ jar { attributes 'Main-Class': 'emu.grasscutter.Grasscutter' } - jar.baseName = 'grasscutter' - jar.archiveName = project.hasProperty('jarFilename') ? "${jarFilename}.${extension}" : archiveName + archiveBaseName = 'grasscutter' + if (project.hasProperty('jarFilename')) { + archiveFileName = "${jarFilename}.${extension}" + } from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } @@ -125,7 +127,7 @@ jar { include '*.xml' } - destinationDir = file(".") + destinationDirectory = file(".") } publishing {