fix: cargo build before gradle intellij plugin touches resources

This commit is contained in:
zaaarf 2023-11-18 21:08:39 +01:00
parent b29f353c7c
commit 997d33a910
No known key found for this signature in database
GPG key ID: 82240E075E31FA4C

View file

@ -57,13 +57,16 @@ tasks.register('cargoBuild', Exec) {
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
tasks.register('deleteGeneratedNativeInterface', Delete) {
delete 'src/main/java/com/codemp/intellij/jni'
}
cargoBuild.dependsOn deleteGeneratedNativeInterface
//delete cargo build files
tasks.register('cargoClean', Exec) {
workingDir '.'