Giuseppe Barbieri
04/11/2024, 3:41 PMnativeVariants.forEach { variantDefinition ->
val nativeJar = tasks.create<Jar>(variantDefinition.classifier + "Jar") {
doLast {
val lib = ".." // lib.dll/so/jnilib
// this is wrong
archiveFile.get().asFile.writeBytes(projectDir.resolve(lib).readBytes())
}
}
the archive file is the jar, how may I pack them in there?Giuseppe Barbieri
04/11/2024, 3:45 PMtarTree(archiveFile).plus(projectDir.resolve(lib))
> Querying the mapped value of task ':natives-linux-aarm64Jar' property 'archiveFile' before task ':natives-linux-aarm64Jar' has completed is not supported
Giuseppe Barbieri
04/11/2024, 3:51 PMtasks.create<Jar>(variantDefinition.classifier + "Jar") {
from(projectDir.resolve(lib))
but the resulting jars are invalidGiuseppe Barbieri
04/12/2024, 6:34 AMactions = listOf()
removing it fixes it