Gradle透明地重命名dependecy包

时间:2015-07-17 22:43:24

标签: java gradle dependencies

是否有可能创建依赖关系,在编译时会被透明地重新打包? 我的想法如下:

// 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)

0 个答案:

没有答案