Commit f1b63c56 authored by AnimeGitB's avatar AnimeGitB
Browse files

Replace deprecated gradle properties

parent 4cbd3c7b
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment