(fix) Prevent protos from being cleaned

This commit is contained in:
KingRainbow44
2023-11-25 23:03:24 -05:00
parent 7b3ad329b7
commit e5133841e7

View File

@@ -39,19 +39,23 @@ protobuf {
artifact = 'us.hebi.quickbuf:protoc-gen-quickbuf:1.3.1' artifact = 'us.hebi.quickbuf:protoc-gen-quickbuf:1.3.1'
} }
} }
generateProtoTasks {
all().each { task -> if (System.getenv("GENERATE_PROTO") == "true") {
task.builtins { generateProtoTasks {
remove java all().each { task ->
} task.builtins {
task.plugins { remove java
quickbuf { }
//option 'store_unknown_fields=true' task.plugins {
outputSubDir = '' quickbuf {
} //option 'store_unknown_fields=true'
} outputSubDir = ''
} }
} }
}
}
}
generatedFilesBaseDir = "$projectDir/src/generated/" generatedFilesBaseDir = "$projectDir/src/generated/"
} }