Android Studio发布项目到Maven私有库(Nexus)


apply plugin: 'com.android.library'

apply plugin: 'maven' uploadArchives { repositories { mavenDeployer { repository( url: 'http://192.168.1.153:8081/nexus/content/repositories/thirdparty') { authentication( userName: "admin", password: "admin123") } pom. project { name 'testname' groupId 'testgroupId' artifactId 'testartifactId' version '1.0.0' packaging 'aar' licenses { license { name 'The Apache Software License, Version 2.0' url 'http://www.apache.org/licenses/LICENSE-2.0.txt' distribution 'repo' } } developers { developer { id 'test' name 'test' } } } } } }


nexus配置

Android Studio发布项目到Maven私有库(Nexus)_第1张图片


在android studio中执行发布

Android Studio发布项目到Maven私有库(Nexus)_第2张图片


看到提交的结果

Android Studio发布项目到Maven私有库(Nexus)_第3张图片

你可能感兴趣的:(Android)