mirror of
https://github.com/hexedtech/codemp.git
synced 2024-12-26 06:44:54 +01:00
fix(java): cargo build before process resources, don't cache resources
This commit is contained in:
parent
43fd52e291
commit
b7680b15c1
1 changed files with 2 additions and 1 deletions
3
dist/java/build.gradle
vendored
3
dist/java/build.gradle
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue