Added example android_binary depending on generated aar_import.
2 files changed
tree: 706f4a613196e4ae7d69b8627d4abd48948c4fcc
  1. examples/
  2. BUILD
  3. gmaven.bzl
  4. GMavenToBazel.java
  5. maven_rules.bzl
  6. README.md
  7. settings.xml
  8. WORKSPACE
README.md

A bzl file that contains maven_jar and maven_aar rules for all artifacts in https://maven.google.com. Not guaranteed to be correct or up to date. Some of the artifacts depend on artifacts that are not present on https://maven.google.com. We ignore these and hope not to fail.

To use this from your project, in your WORKSPACE file add

git_repository(
    name = 'gmaven_rules',
    remote = 'https://github.com/aj-michael/gmaven_rules',
    commit = '<FILL IN A COMMIT HERE>',
)
load('@gmaven_rules//:gmaven.bzl', 'gmaven_rules')
gmaven_rules()

To regenerate gmaven.bzl, run

rm gmaven.bzl && javac GMavenToBazel.java && java GMavenToBazel

Note that this requires a Bazel binary containing the changes in https://github.com/bazelbuild/bazel/commit/431b6436373c9feb5d03e488ff72f822bbe55b2d