- Auto generate bazel build config
- Support maven/local/project dependency
- Support kotlin project
- Support nested project
- Put all external library in one, and exports to pub, performance need!
- More ...
- when use kotlin, bazel not support apt
- bazel not support Databinding v2+
- some jar desugar error by bazel
- other unknow bazel limit...
AGP: 3.1.+ gradle: 4.4 + Android: 26
Just write into root project's build.gradle
plugins {
id 'io.zcx.plugin.bazel' version $latest
}
Must before other config
Or
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "io.zcx.plugin:plugin:$latest"
}
}
apply plugin: "io.zcx.plugin.bazel"
Sync project, and execute genBazel-x
task to generate bazel BUILD
# only build
bazel build //app
# build and install and startup
bazel mobile-install --start_app //app
# build and install incremental
bazel mobile-install --incremental --start_app //app