设为首页 加入收藏

TOP

Chapter 7. Dependency Management Basics 依赖管理基础(四)
2017-10-13 10:04:58 】 浏览:10047
Tags:Chapter Dependency Management Basics 依赖 管理 基础
p;Note that you also need to apply the Maven plugin in order to publish to a Maven repository. when this is in place, Gradle will generate and upload a pom.xml.

//你也可以发布到maven仓库中,语法稍微不同。maven也会生成pom.xml文件并上传

Example 7.10. Publishing to a Maven repository

build.gradle

apply plugin: 'maven'

uploadArchives {
    repositories {
        mavenDeployer {
            repository(url: "file://localhost/tmp/myRepo/") } } } 

To find out more about publication, have a look at Chapter 30, Publishing artifacts.

7.7. Where to next?

For all the details of dependency resolution, see Chapter 23, Dependency Management, and for artifact publication see Chapter 30, Publishing artifacts.

If you are interested in the DSL elements mentioned here, have a look at Project.configurations{}Project.repositories{} and Project.dependencies{}.

Otherwise, continue on to some of the other tutorials.

首页 上一页 1 2 3 4 下一页 尾页 4/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇全新的手势,侧滑返回、全局右滑.. 下一篇Chapter 8. Introduction to mult..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目