mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-02-04 17:22:13 +01:00
Replace deprecated gradle properties
This commit is contained in:
10
build.gradle
10
build.gradle
@@ -103,7 +103,7 @@ configurations.all {
|
|||||||
|
|
||||||
application {
|
application {
|
||||||
// Define the main class for the 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'
|
attributes 'Main-Class': 'emu.grasscutter.Grasscutter'
|
||||||
}
|
}
|
||||||
|
|
||||||
jar.baseName = 'grasscutter'
|
archiveBaseName = 'grasscutter'
|
||||||
jar.archiveName = project.hasProperty('jarFilename') ? "${jarFilename}.${extension}" : archiveName
|
if (project.hasProperty('jarFilename')) {
|
||||||
|
archiveFileName = "${jarFilename}.${extension}"
|
||||||
|
}
|
||||||
|
|
||||||
from {
|
from {
|
||||||
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
||||||
@@ -125,7 +127,7 @@ jar {
|
|||||||
include '*.xml'
|
include '*.xml'
|
||||||
}
|
}
|
||||||
|
|
||||||
destinationDir = file(".")
|
destinationDirectory = file(".")
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
|
|||||||
Reference in New Issue
Block a user