天天看点

AS 发布aar到阿里云 自建的Maven库

阿里云 maven:

​​https://packages.aliyun.com/maven​​

本地配置:

使用的是maven-publish插件

apply plugin: 'maven-publish'
afterEvaluate {
    publishing {
        publications {
            release(MavenPublication) {
                from components.release
                version = '1.0.1'
                artifactId = 'libs'
                groupId = 'com.loaderman.jicf'

            }
        }
        repositories {
            maven {
                name="aliyun"
                url = 'https://packages.aliyun.com/maven/repository/52323-release-SXR233l/'
                credentials {
                    username = '123456abcdef'
                    password = 't-123456789'
                }

            }

        }
    }

}      

 然后,点击gradle 工具:

AS 发布aar到阿里云 自建的Maven库