问题描述
我想将我的android aar上传到 bintray .我希望使用,但是当我执行cmd #gradlew bintrayUpload
时,cmd显示错误消息,以及我的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 bintrayTrouble 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!