Code Monkey home page Code Monkey logo

Comments (4)

trycatchx avatar trycatchx commented on May 18, 2024

@shenshuo
对于 gradle.properties 中的配置:如果使用 org.gradle.configureondemand = true ,请删除或者设置为 false,目前在 window 的 as 上会出现问题,已纳入下期需求

from rocketx.

shenshuo avatar shenshuo commented on May 18, 2024

@trycatchx
我想在自己的plugin中 获取到项目的依赖库内容
project.configurations.each { Configuration conf ->
if (conf.isCanBeResolved()) {
println conf.incoming.resolutionResult.root.dependencies
}
就报 Cannot change dependencies of dependency configuration ':app:implementation' after it has been included in dependency resolution
请问有什么方法实现在plugin中获取到项目的依赖库的名称版本号一类的方案吗

from rocketx.

trycatchx avatar trycatchx commented on May 18, 2024

@shenshuo
非常幸运的是之前团队基于 RocketX 衍生了一个 DenpendcyX 的插件。
DenpendcyX :主要输出项目中的每一个module 的 父依赖和子依赖到 excel 中的 sheet1 和 sheet2 中,方便排查项目 module的依赖情况。(但是目前只是输出了module 之间的依赖情况),你可以根据要求开放查看所有的依赖包括网络依赖

只需要屏蔽 DependencyPlugin.kt 中:
if (it is DefaultProjectDependency) 这行代码,就可以看到所有的依赖情况。

有兴趣可以尝试一下:

DenpendcyX.zip

from rocketx.

Wensibob avatar Wensibob commented on May 18, 2024

步骤:
1、开启插件,第一次跑没问题
2、再跑一次报错,报错如下图所示,项目没有设置org.gradle.configureondemand = true
image

from rocketx.

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.