mirror of
https://github.com/hexedtech/codemp-intellij.git
synced 2024-11-21 14:44:49 +01:00
fix: cargo build before gradle intellij plugin touches resources
This commit is contained in:
parent
b29f353c7c
commit
997d33a910
1 changed files with 4 additions and 1 deletions
|
@ -57,13 +57,16 @@ tasks.register('cargoBuild', Exec) {
|
||||||
commandLine 'cargo', 'build', '--release'
|
commandLine 'cargo', 'build', '--release'
|
||||||
}
|
}
|
||||||
|
|
||||||
compileJava.dependsOn cargoBuild
|
//must act before all other tasks who mess with resources to reliably get the binary in
|
||||||
|
patchPluginXml.dependsOn cargoBuild
|
||||||
|
|
||||||
//delete old jni generated files
|
//delete old jni generated files
|
||||||
tasks.register('deleteGeneratedNativeInterface', Delete) {
|
tasks.register('deleteGeneratedNativeInterface', Delete) {
|
||||||
delete 'src/main/java/com/codemp/intellij/jni'
|
delete 'src/main/java/com/codemp/intellij/jni'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cargoBuild.dependsOn deleteGeneratedNativeInterface
|
||||||
|
|
||||||
//delete cargo build files
|
//delete cargo build files
|
||||||
tasks.register('cargoClean', Exec) {
|
tasks.register('cargoClean', Exec) {
|
||||||
workingDir '.'
|
workingDir '.'
|
||||||
|
|
Loading…
Reference in a new issue