是否有可能创建依赖关系,在编译时会被透明地重新打包? 我的想法如下:
// project library
dependencies {
compile 'some.library:artifact:version'
}
repackage {
rule 'some.library.**' 'ext.library.**'
}
// main project, which uses directly "import ext.library.ClassName"
dependencies {
compile project(':library')
}
还有,相关的,我尚未回答的问题:
Gradle rename maven dependency package (HttpComponents, Android)