我在Bintray中有一个与JCenter同步的库。 https://bintray.com/bmsolution/Android/RestManager/0.2
但是当我通过gradle插件上传新版本时 - 它在Bintray(link)上,但它不在jcenter(link)
您是否需要等待同步这么久或我做错了什么?
我的gradle文件片段负责上传:
def libVersion = "0.2"
ext {
PUBLISH_GROUP_ID = 'pl.bms'
PUBLISH_ARTIFACT_ID = 'network'
PUBLISH_VERSION = libVersion
}
apply from: 'https://raw.githubusercontent.com/blundell/release-android-library/master/android-release-aar.gradle'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
publishing {
publications {
MyPublication(MavenPublication) {
artifact sourcesJar
artifact("$buildDir/outputs/aar/network-release.aar")
groupId PUBLISH_GROUP_ID
artifactId PUBLISH_ARTIFACT_ID
version PUBLISH_VERSION
pom.withXml {
def dependenciesNode = asNode().appendNode('dependencies')
// Iterate over the implementation dependencies (we don't want the test ones), adding a <dependency> node for each
configurations.implementation.allDependencies.each {
// Ensure dependencies such as fileTree are not included in the pom.
if (it.name != 'unspecified') {
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', it.group)
dependencyNode.appendNode('artifactId', it.name)
dependencyNode.appendNode('version', it.version)
}
}
}
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publish = true
publications = ['MyPublication']
override = true
pkg {
repo = "Android"
name = "RestManager"
userOrg = 'bmsolution'
licenses = ['Apache-2.0']
vcsUrl = "https://bitbucket.org/libandroid/rest-manager"
issueTrackerUrl = "https://bitbucket.org/libandroid/rest-manager/issues"
version {
name = libVersion
released = new Date()
vcsTag = libVersion
}
}
}
答案 0 :(得分:0)
如果您没有更改任何group / artifactId,那么基于this post我建议等待~24小时才能同步,然后联系support@jfrog.com。
如果您更改了group / artifactId,那么您可以重新链接bintray和jcenter,这也可以通过邮件来支持或重新发布。