Git Product home page Git Product logo

Comments (4)

Bencodes avatar Bencodes commented on September 27, 2024

I believe this is the same issue as #909 but with a different artifact.

from rules_jvm_external.

oliviernotteghem avatar oliviernotteghem commented on September 27, 2024

The key to troubleshoot this is to enable verbose mode in jvm_rules_external, obtain coursier args, replay coursier command with 'resolve' action and --tree param.

Example : /Library/Java/JavaVirtualMachines/temurin-11.jdk/Contents/Home/bin/java -noverify -jar /private/var/tmp/_bazel_oliviern/dd52b20a76c39eca281d5f4cd222340b/external/maven/coursier resolve "com.google.firebase:firebase-analytics:21.5.0,type=aar" --verbose --no-default --checksum SHA-1,MD5 --repository https://maven.google.com --repository https://repo1.maven.org/maven2 --cache v1 --tree

Conclusion : starting with version > 20.4.0, com.google.firebase:firebase-common-ktx is wrongly published and specify a jar dependency that doesn't exist (firebase-component).

Fix : file github issue to Google to fix their POM in future versions + consider implementing the same behavior as Gradle (which resolves the jar/aar conflict differently - maybe by implementing fallback when jar can't be found?)

Temp : pin version 20.4.0 (i.e explicitly add coord to WORKSPACE so that it takes precedences on 20.4.1 or 20.4.2).

from rules_jvm_external.

shs96c avatar shs96c commented on September 27, 2024

This doesn't look like a rules_jvm_external issue, so I shall close this. Please let me know if you'd like me to reopen it.

from rules_jvm_external.

oliviernotteghem avatar oliviernotteghem commented on September 27, 2024

We might want to have same behavior as Gradle : when POM incorrectly specifies a JAR instead of AAR, it will fallback to using the AAR. Thoughts?

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.