2013-05-29 24 views

回答

4
repositories { 
    mavenCentral() // or some other repo 
} 

configurations { 
    deploy 
} 

dependencies { 
    deploy "someGroup:someArtifact:someVersion" 
} 

task copyDeploy(type: Copy) { 
    from configurations.deploy 
    into "deploy" 
} 

你可以找到所有的这一切,更在Gradle User Guide(例如,“具有相关工作”下)和Gradle发行版中的许多样本。

+0

完美的作品!很好。非常感谢你 ! – Viraj

+0

有没有办法在默认情况下将一些“部署”依赖项添加到项目中(考虑到我在Gradle插件中使用了上述内容)? – Renato

相关问题