fix(java): cargo build before process resources, don't cache resources

This commit is contained in:
zaaarf 2024-09-15 20:38:47 +02:00
parent 43fd52e291
commit b7680b15c1
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B

View file

@ -39,6 +39,7 @@ def rustDir = projectDir.toPath()
.resolve('release') .resolve('release')
.toFile() .toFile()
processResources { processResources {
outputs.upToDateWhen { false } // no caching
from(rustDir) { from(rustDir) {
include('*.dll') include('*.dll')
include('*.so') include('*.so')
@ -52,5 +53,5 @@ tasks.register('cargoBuild', Exec) {
commandLine 'cargo', 'build', '--release', '--features=java' commandLine 'cargo', 'build', '--release', '--features=java'
} }
build.dependsOn cargoBuild processResources.dependsOn cargoBuild
build.finalizedBy shadowJar build.finalizedBy shadowJar