Need help getting Better Sprite Packer 3 working.

Apr 8, 2018
27
0
0
The title says it all.

I have tried to debug the issues myself within the code, I keep getting this error:

The AbstractArchiveTask.baseName property has been deprecated. This is scheduled to be removed in Gradle 7.0. Please use the archiveBaseName property instead. See https://docs.gradle.org/6.3/dsl/org...i.tasks.bundling.AbstractArchiveTask:baseName for more details.
at Build_gradle$fatJar$1.invoke(build.gradle.kts:50)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)

Replacing it with archiveBaseName yields this error:

* Where:
Build file 'C:\Users\Dkuch\Downloads\better-sprite-packer-master\build.gradle.kts' line: 50

* What went wrong:
Script compilation errors:

Line 50: archiveBaseName = "bsp4-gui.jar"
^ Val cannot be reassigned

Line 50: archiveBaseName = "bsp4-gui.jar"
^ Type mismatch: inferred type is String but Property<String!>! was expected

2 errors

Here is the code within:

val fatJar = task("fatJar", type = Jar::class) {
archiveBaseName = "bsp4-gui.jar"
manifest {
attributes["Main-Class"] = application.mainClassName
}
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
with(tasks.jar.get() as CopySpec)
}

Thanks for any help you guys can offer.
 

Users who are viewing this thread (total: 1, members: 0, guests: 1)

Who read this thread (total members: 4)