A Gradle plugin that builds modules using Bazel.
A Gradle plugin that builds modules using Bazel.
bazel
binary in not in PATH set the path to it in local.properties
:bazel.bin.path=/usr/local/bin/bazel
app - an Android app which is built using Gradle
|
|_ lib1 - a Java lib that is built using Gradle
| |
| |_ Lib2 - a Java lib that is build using Bazel
|
|_ lib3 - a Java lib that is built using Bazel
| |
| |_ lib4 - a Java lib that is built using Bazel
|
|_ andlib - an Android lib that is built using Bazel
| |
| |_ innerandlib - an Android lib that is built using Bazel
|
|_ gandlib - an Android lib that is built using Gradle
|
|_ innerandlib - an Android lib that is built using Bazel
|
|_ lib4 - a Java lib that is built using Bazel
For each module that is built using Bazel:
build.gradle
file for the modulebazel-leaf
plugin:
apply plugin: 'bazelleaf'
bazel {
target = 'jar'
}
./gradlew test
is called:
bazel {
target = 'jar'
testTarget = 'AllTests'
}
./gradlew
assembleDebug
before importing into Android Studio, or before doing gradle-sync for the first time.
Copyright 2018 Spotify
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.