Git Product home page Git Product logo

Comments (2)

jin avatar jin commented on September 23, 2024

Prototype: https://github.com/jin/gmaven_rules/commit/954658d4fdc22231fcc7584aa99bbfc5727499ba

The new gmaven.bzl will contain generated targets like this:

aar_import_external(
    name = "com_android_support_test_espresso_espresso_core_3_0_1",
    aar_urls = [
        "https://dl.google.com/dl/android/maven2/com/android/support/test/espresso/espresso-core/3.0.1/espresso-core-3.0.1.aar",
    ],
    aar_sha256 = "dbca1a46db203a7ef12aa7cea37e5d5345900f83401b32d5f60f220991290948",
    licenses = ["notice"],  # Apache
    deps = [
        # GMaven does not have org_hamcrest_hamcrest_integration_1_3
        '@com_android_support_test_runner_1_0_1//aar',
        # GMaven does not have com_google_code_findbugs_jsr305_2_0_1
        # GMaven does not have javax_inject_javax_inject_1
        '@com_android_support_test_rules_1_0_1//aar',
        # GMaven does not have com_squareup_javawriter_2_1_1
        # GMaven does not have org_hamcrest_hamcrest_library_1_3
        '@com_android_support_test_espresso_espresso_idling_resource_3_0_1//aar',
    ],
)

Perks:

  1. no maven dependency
  2. sha256 validation
  3. multiple URLs
  4. ability to generate java_import_external targets automatically for jar deps
  5. ability to set default repositories for generated non-Google Maven targets
  6. licenses, srcjar support

cc @ahumesky, @slinzner, WDYT?

from rules_jvm_external.

jin avatar jin commented on September 23, 2024

The aar_import_external rule can be bundled in this repository to decouple from the Bazel release cycle for now, and upstreamed into Bazel later.

from rules_jvm_external.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.