4
我对老版本库testX有一个传递性编译依赖关系。库testX不应该是编译依赖性,而是testCompile依赖性。更重要的是,我想依赖于testX的新版本,而不是旧版本。如何从编译中排除依赖关系但不从testCompile中排除
我有一个部分解决方案,它设置了正确版本的库,但它通过覆盖编译依赖项来工作。但是我留下了不需要的textX编译。
compile group: 'x', name: 'testX', version 'new'
我试图排除来自编译库testX并添加明确testCompile的依赖,但也排除从testCompile删除依赖关系。
testCompile group: 'x', name: 'testX', version 'new'
configurations {
compile.exclude group: 'x', module: 'X'
}
您是否设法解决这个问题?我面临同样的问题。 –