{"id":13450900,"url":"https://github.com/bazelbuild/gmaven_rules","last_synced_at":"2025-03-23T16:32:32.025Z","repository":{"id":66251024,"uuid":"175471286","full_name":"bazelbuild/gmaven_rules","owner":"bazelbuild","description":"This repository is deprecated. Please instead use https://github.com/bazelbuild/rules_jvm_external","archived":true,"fork":false,"pushed_at":"2019-03-13T17:56:49.000Z","size":1538,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-28T17:39:37.100Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bazelbuild.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS"}},"created_at":"2019-03-13T17:48:39.000Z","updated_at":"2023-01-28T06:32:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"123f1d1b-8f55-4d5e-b092-bac79e87772f","html_url":"https://github.com/bazelbuild/gmaven_rules","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazelbuild%2Fgmaven_rules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazelbuild%2Fgmaven_rules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazelbuild%2Fgmaven_rules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazelbuild%2Fgmaven_rules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bazelbuild","download_url":"https://codeload.github.com/bazelbuild/gmaven_rules/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245131095,"owners_count":20565768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T07:00:39.989Z","updated_at":"2025-03-23T16:32:31.661Z","avatar_url":"https://github.com/bazelbuild.png","language":"Python","readme":"# gmaven_rules\n\nThis project provides support for easily depending on common Android libraries in Bazel.\n\nIt hosts `gmaven.bzl`, a file containing external repository\ntargets for all artifacts in [Google Maven Repository](https://maven.google.com) plus their\ndependencies, and the supporting tools for generating it.\n\nThis project is an interim solution until Google Maven and AAR support is added to\n[bazel-deps](https://github.com/johnynek/bazel-deps). See also \n[Bazel External Deps Roadmap](https://www.bazel.build/roadmaps/external-deps.html).\n\n# Usage instructions\n\nPlease see the\n[releases](https://github.com/bazelbuild/gmaven_rules/releases/latest) page for\ninstructions on using the latest snapshot.\n\nTo use this from your project, in your `WORKSPACE` file add\n\n```\n# Google Maven Repository\nGMAVEN_TAG = \"20180607-1\" # or the tag from the latest release\n\nhttp_archive(\n    name = \"gmaven_rules\",\n    strip_prefix = \"gmaven_rules-%s\" % GMAVEN_TAG,\n    url = \"https://github.com/bazelbuild/gmaven_rules/archive/%s.tar.gz\" % GMAVEN_TAG,\n)\n\nload(\"@gmaven_rules//:gmaven.bzl\", \"gmaven_rules\")\n\ngmaven_rules()\n```\n\nYou can then reference the generated library targets from your `BUILD` files like:\n\n```\nload(\"@gmaven_rules//:defs.bzl\", \"gmaven_artifact\")\nandroid_library(\n    ...\n    deps = [\n        gmaven_artifact(\"com.android.support:design:aar:27.0.2\"),\n        gmaven_artifact(\"com.android.support:support_annotations:jar:27.0.2\"),\n        gmaven_artifact(\"com.android.support.test.espresso:espresso_core:aar:3.0.1\"),\n    ],\n)\n```\n\nYou can see the full list of generated targets in\n[`gmaven.bzl`](https://raw.githubusercontent.com/aj-michael/gmaven_rules/master/gmaven.bzl).\n\n# Updating gmaven.bzl\n\nTo update `gmaven.bzl`, run the following command. It will take about 3 minutes.\n\n```\nbazel run //:gmaven_to_bazel \u0026\u0026 cp bazel-bin/gmaven_to_bazel.runfiles/__main__/gmaven.bzl .\n```\n\n# Known issues\n\nCurrently, cross-repository dependency resolution is not supported. Some of the\nartifacts depend on other artifacts that are not present on Google Maven, and\nthese missing dependencies are silently ignored and may cause failures at\nruntime. \n","funding_links":[],"categories":["Tooling"],"sub_categories":["Migration"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazelbuild%2Fgmaven_rules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbazelbuild%2Fgmaven_rules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazelbuild%2Fgmaven_rules/lists"}