mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-25 08:34:47 +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')
|
.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
|
||||||
|
|
Loading…
Reference in a new issue