File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -90,15 +90,19 @@ tasks.register<Copy>("setupJsonMappers") {
9090}
9191tasks.getByName(" compileKotlinJvm" ).dependsOn(" setupJsonMappers" )
9292
93- tasks.register<Exec >(" restrictDeletionOfJsonMappers" ){
93+ tasks.register<Exec >(" restrictDeletionOfJsonMappers" ) {
9494 mustRunAfter(" setupJsonMappers" )
9595 commandLine(" chmod" , " a-w" , " $buildDir /generated/source/kapt/main/META-INF/vertx" )
9696}
9797tasks.getByName(" compileKotlinJvm" ).dependsOn(" restrictDeletionOfJsonMappers" )
9898
99- tasks.register<Exec >(" unrestrictDeletionOfJsonMappers" ){
99+ tasks.register<Exec >(" unrestrictDeletionOfJsonMappers" ) {
100100 mustRunAfter(" compileKotlinJvm" )
101- commandLine(" chmod" , " a+w" , " $buildDir /generated/source/kapt/main/META-INF/vertx" )
101+ if (file(" $buildDir /generated/source/kapt/main/META-INF/vertx" ).exists()) {
102+ commandLine(" chmod" , " a+w" , " $buildDir /generated/source/kapt/main/META-INF/vertx" )
103+ } else {
104+ commandLine(" true" ) // no-op
105+ }
102106}
103107tasks.getByName(" jvmJar" ).dependsOn(" unrestrictDeletionOfJsonMappers" )
104108tasks.getByName(" clean" ).dependsOn(" unrestrictDeletionOfJsonMappers" )
You can’t perform that action at this time.
0 commit comments