1

我想将我的 android aar 上传到bintray。我对此表示赞同但是当我执行 cmd#gradlew bintrayUpload时,cmd 显示错误消息,我的 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。

4

1 回答 1

1

请查看以下线程之一: HTTP/1.1 401 Unauthorized when uploading binary on bintray Trouble Publishing Android Studio Library on jCenter with Bintray

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

于 2016-11-01T09:58:47.907 回答