mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-16 07:14:58 +01:00
(fix) Prevent protos from being cleaned
This commit is contained in:
30
build.gradle
30
build.gradle
@@ -39,19 +39,23 @@ protobuf {
|
||||
artifact = 'us.hebi.quickbuf:protoc-gen-quickbuf:1.3.1'
|
||||
}
|
||||
}
|
||||
generateProtoTasks {
|
||||
all().each { task ->
|
||||
task.builtins {
|
||||
remove java
|
||||
}
|
||||
task.plugins {
|
||||
quickbuf {
|
||||
//option 'store_unknown_fields=true'
|
||||
outputSubDir = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (System.getenv("GENERATE_PROTO") == "true") {
|
||||
generateProtoTasks {
|
||||
all().each { task ->
|
||||
task.builtins {
|
||||
remove java
|
||||
}
|
||||
task.plugins {
|
||||
quickbuf {
|
||||
//option 'store_unknown_fields=true'
|
||||
outputSubDir = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
generatedFilesBaseDir = "$projectDir/src/generated/"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user