mirror of
https://github.com/hexedtech/codemp-intellij.git
synced 2024-11-24 16:04:48 +01:00
feat: also delete jni folder on clean
This commit is contained in:
parent
fb8faffe2e
commit
c3896ca997
1 changed files with 13 additions and 0 deletions
13
build.gradle
13
build.gradle
|
@ -41,6 +41,8 @@ tasks {
|
|||
}
|
||||
|
||||
//define rust tasks
|
||||
def jniSourcesFolder = 'src/main/java/com/codemp/intellij/jni'
|
||||
|
||||
tasks.register('cargoBuild', Exec) {
|
||||
workingDir '.'
|
||||
commandLine 'cargo', 'build'
|
||||
|
@ -48,6 +50,12 @@ tasks.register('cargoBuild', Exec) {
|
|||
|
||||
compileJava.dependsOn cargoBuild
|
||||
|
||||
tasks.register('prepareJniFolder') {
|
||||
mkdir jniSourcesFolder
|
||||
}
|
||||
|
||||
cargoBuild.dependsOn prepareJniFolder
|
||||
|
||||
tasks.register('cargoClean', Exec) {
|
||||
workingDir '.'
|
||||
commandLine 'cargo', 'clean'
|
||||
|
@ -55,3 +63,8 @@ tasks.register('cargoClean', Exec) {
|
|||
|
||||
clean.dependsOn cargoClean
|
||||
|
||||
tasks.register('deleteGeneratedNativeInterface', Delete) {
|
||||
delete jniSourcesFolder
|
||||
}
|
||||
|
||||
cargoClean.dependsOn deleteGeneratedNativeInterface
|
Loading…
Reference in a new issue