将我的 android aar 发布到 jcenter

publish my android aar to jcenter

我想将我的 android aar 上传到 bintray.I reafer to this ,but when I execute the cmd #gradlew bintrayUpload,the cmd show error message,我的 gradle 文件如下:

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。

请查看以下主题之一: Trouble Publishing Android Studio Library on jCenter with Bintray

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