将我的android aar发布到jcenter [英] publish my android aar to jcenter

查看:315
本文介绍了将我的android aar发布到jcenter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将我的android aar上传到 bintray .我希望使用错误消息,以及我的gradle文件如下:

I want to upload my android aar to the bintray.I reafer to this ,but when I execute the cmd #gradlew bintrayUpload,the cmd show error message,and my gradle file as follow:

bintray {
    user = properties.getProperty('bintray.user')
    key = properties.getProperty('bintray.apikey')
    configurations = ['published', 'archives']

    dryRun = false
    publish = true

    pkg {
        repo = 'maven'
        name = 'ActionAnimatorSet'

        desc = 'An animator operation set on Android'

        websiteUrl = 'https://github.com/paulyung541/ActionAnimatorSet'
        issueTrackerUrl = 'https://github.com/paulyung541/ActionAnimatorSet/issues'
        vcsUrl = 'https://github.com/paulyung541/ActionAnimatorSet.git'

        licenses = ['GNU GENERAL PUBLIC LICENSE, Version 3.0']
        labels = ['Android', 'ObjectAnimator', 'AnimatorSet']
        publicDownloadNumbers = true

        version {
            name = '1.0.0'
            desc = 'first version'
            vcsTag = '1.0'
        }
    }
}

publishing {
    publications {
        Publication(MavenPublication) {
            groupId 'com.paulyung'
            artifactId 'actionanimset'
            version '1.0.0'
        }
    }
}

我已经在Bintray中设置了一个Maven,但是cmd总是指出我没有Maven.

I already setup a maven in bintray,but the cmd always point out that I don't have a maven.

推荐答案

请查看以下线程之一: HTTP/1.1 401在Bintray上上传二进制文件时未经授权 使用Bintray在jCenter上发布Android Studio库问题

Please look at one of the following threads: HTTP/1.1 401 Unauthorized when uploading binary on bintray Trouble Publishing Android Studio Library on jCenter with Bintray

您可能缺少userOrg参数. 这取决于您的Maven存储库是否位于您的组织或用户下.

You might be missing the userOrg parameter. It depends on if your maven repo resides under your organization or user.

这篇关于将我的android aar发布到jcenter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆