(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,6 +39,8 @@ protobuf {
artifact = 'us.hebi.quickbuf:protoc-gen-quickbuf:1.3.1'
}
}
if (System.getenv("GENERATE_PROTO") == "true") {
generateProtoTasks {
all().each { task ->
task.builtins {
@@ -52,6 +54,8 @@ protobuf {
}
}
}
}
generatedFilesBaseDir = "$projectDir/src/generated/"
}