Allow to override final jar filename using project property

This commit is contained in:
Hotaru 2022-05-12 22:30:12 +02:00 committed by Melledy
parent 65fcae7961
commit f441d0665a

View File

@ -105,6 +105,7 @@ jar {
} }
jar.baseName = 'grasscutter' jar.baseName = 'grasscutter'
jar.archiveName = project.hasProperty('jarFilename') ? "${jarFilename}.${extension}" : archiveName
from { from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }