Don't allow swift grpc generation on swift.
Swift on Windows isn't great atm.
This commit is contained in:
@@ -22,17 +22,19 @@ configurations {
|
||||
protobuf {
|
||||
protoc { artifact = 'com.google.protobuf:protoc:3.11.0' }
|
||||
plugins {
|
||||
swift {
|
||||
path = "$projectDir/grpc_plugins/protoc-gen-swift"
|
||||
}
|
||||
grpc {
|
||||
artifact = 'io.grpc:protoc-gen-grpc-java:1.28.1' // CURRENT_GRPC_VERSION
|
||||
}
|
||||
grpc_python {
|
||||
path = "$projectDir/grpc_plugins/grpc_python_plugin_1.28.1-${osdetector.classifier}"
|
||||
}
|
||||
grpc_swift {
|
||||
path = "$projectDir/grpc_plugins/protoc-gen-grpc-swift-$osdetector.classifier"
|
||||
if(osdetector.os != 'windows'){
|
||||
swift {
|
||||
path = "$projectDir/grpc_plugins/protoc-gen-swift"
|
||||
}
|
||||
grpc_swift {
|
||||
path = "$projectDir/grpc_plugins/protoc-gen-grpc-swift-$osdetector.classifier"
|
||||
}
|
||||
}
|
||||
}
|
||||
generateProtoTasks {
|
||||
@@ -43,15 +45,17 @@ protobuf {
|
||||
python {}
|
||||
}
|
||||
task.plugins {
|
||||
swift{}
|
||||
grpc { // Options added to --grpc_out
|
||||
option 'lite'
|
||||
}
|
||||
grpc_python {
|
||||
outputSubDir = 'python'
|
||||
}
|
||||
grpc_swift {
|
||||
outputSubDir = 'swift'
|
||||
if(osdetector.os != 'windows'){
|
||||
swift{}
|
||||
grpc_swift {
|
||||
outputSubDir = 'swift'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user