依赖API

作者: 龙剑灵 | 来源:发表于2020-03-22 22:49 被阅读0次
buildscript { ScriptHandler scriptHandler ->
    //配置工程的仓库地址
    scriptHandler.repositories { RepositoryHandler handler ->
        handler.jcenter()
        handler.mavenCentral()
        handler.mavenLocal()
        handler.ivy {} //弃用
        handler.maven {
            name 'compnay'
            url 'http://localhost://88899/nexus/repositories'
            credentials {
                username = "admin"
                password = 'admin123'
            }
        }
    }
    //配置工程的"插件"依赖地址
    scriptHandler.dependencies {}
}

buildscript {
    //配置工程的仓库地址
    repositories {
        jcenter()
        mavenCentral()
        mavenLocal()
        ivy {} //弃用
        maven {
            name 'compnay'
            url 'http://localhost://88899/nexus/repositories'
            credentials {
                username = "admin"
                password = 'admin123'
            }
        }
    }
    //配置工程的"插件"依赖地址
    dependencies {}
}
image.png
image.png
image.png
image.png
image.png

相关文章

网友评论

      本文标题:依赖API

      本文链接:https://www.haomeiwen.com/subject/levfehtx.html