Files
picar/car/build.gradle
Piv a7fdbf3f6e Don't allow swift grpc generation on swift.
Swift on Windows isn't great atm.
2020-05-19 18:40:29 +09:30

28 lines
559 B
Groovy

configurations {
python {
canBeResolved = true
canBeConsumed = false
}
}
dependencies {
python project(path: ':protobuf', configuration: 'python')
}
task copyPythonCode(type: Copy, dependsOn: configurations.python){
// Copy python protobuf code from proto project.
from zipTree(configurations.python.asPath)
into './src'
}
task build(type: Exec, dependsOn: copyPythonCode) {
executable 'python3'
args 'setup.py', 'bdist_wheel'
}
task clean {
doLast {
delete 'dist'
delete 'build'
}
}