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')
.toFile()
processResources {
outputs.upToDateWhen { false } // no caching
from(rustDir) {
include('*.dll')
include('*.so')
@ -52,5 +53,5 @@ tasks.register('cargoBuild', Exec) {
commandLine 'cargo', 'build', '--release', '--features=java'
}
build.dependsOn cargoBuild
processResources.dependsOn cargoBuild
build.finalizedBy shadowJar