I want to make a custom archive task based on executing javafxpackager. I want this to produce an artifact that would automatically be included as an archive that can be published with the “maven-publish” plugin. Just like the default Archive tasks (e.g. jar) so I could do:
artifacts {
archives jarfx
}
I tried:
task jarfx(type: AbstractArchiveTask, dependsOn: preparePackage) {
destinationDir = “${projectDir/dist”
archiveName = jar.archiveName
inputs.dir = “build/Package”
}
jarfx << {
// what it takes to exec javafxpackager
}
But that results in: “Cannot create a proxy class for abstract class ‘AbstractArchiveClass’”
What is the right way to do this?