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 工具:

即可发布到Maven库中

 

posted on 2022-10-28 21:37  LoaderMan  阅读(150)  评论(0编辑  收藏  举报

导航