Giter VIP home page Giter VIP logo

bug-reports's Introduction

Gradle 6 to 7(or 8.8 with testing) transitive dep issue

Summary

Gradle 6 let you override a dependency by adding a "force" on the dep. Gradle 7+ you have to use a resolution strategy. However, this resolution strategy does NOT seem to propagate to down stream repos. This demonstrates this issue.

How to verify:

  • There are two branches involved
    • gradle-7-dep-failure-on-override - this has gradle 8 based syntax
    • gradle-7-dep-failure-on-override-when-using-gradle-6 - this has gradle 6 syntax.

You can verify the bug by doing the following:

 ./gradlew -q 'c:dependencyInsight'  --dependency google-api-services-compute --configuration runtimeClasspath

On veresion 6 of gradle, this shows the CORRECT "B" Override that forces a newer version. NOTE if you use this on project B, on both gradle 6 AND 8 you'll see the "beta" version shown. On gradle 6, running this insight on project "C" will ALSO show beta as the slected version.

On version 7 and 8 of gradle, this is no longer the case. There are two cases seen:

  • Switching to the resolution strategy will suddenly change the version on project C to "alpha" potentiallY (and actually in spinnaker) causing breakages, and is a change in behavior above
  • Switching to the the "stricly" command to FORCE a version... will cause a conflict with the enforcedPlatform and C will fail.

This seems like a significant potential breakgage as project B no longer has a way to say to "project C" that "USE THIS VERSION" and instead now when doing "stricly" things fail. Arguably - they should have failed before.
There also doesn't seem to be a way to "force" allow the version in B to replace the enforcedPlatform version.

bug-reports's People

Contributors

jasonmcintosh avatar

Watchers

 avatar

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.