【问题标题】:Jcenter (Bintray) not approving android libraryJcenter(Bintray)不批准android库
【发布时间】:2018-08-26 21:58:56
【问题描述】:

我制作了一个 android 库(我的第一个).. 按照这些步骤并能够成功上传到 bintray..但是当我请求链接到 jCenter 时,我从 Bintray 收到了这封邮件:

请合并所有必要的文件,例如pom、aar 和 sources 进入一个共同的路径,我们很乐意批准您的包含请求。

我不确定自己做错了什么。

这是我的 bintray 库https://bintray.com/hitanshu-dhawan/maven/SharedPref

我的库 build.gradle 文件

apply plugin: 'com.android.library'

android {
    compileSdkVersion 26
    defaultConfig {
        minSdkVersion 1
        targetSdkVersion 26
        versionCode 1
        versionName "1.0.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

ext {
    bintrayRepo = 'maven'
    bintrayName = 'SharedPref'
    publishedGroupId = 'com.hitanshudhawan.sharedpref'
    libraryName = 'sharedpref'
    artifact = 'sharedpref'
    libraryDescription = 'An android library for making SharedPreferences easy'
    siteUrl = 'https://github.com/hitanshu-dhawan/SharedPref'
    gitUrl = 'https://github.com/hitanshu-dhawan/SharedPref.git'
    libraryVersion = '1.0.0'
    developerId = 'hitanshu-dhawan'
    developerName = 'Hitanshu Dhawan'
    developerEmail = 'hitanshudhawan1996@gmail.com'
    licenseName = 'The Apache Software License, Version 2.0'
    licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
    allLicenses = ["Apache-2.0"]
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:support-annotations:26.1.0'
}

apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'

【问题讨论】:

    标签: android android-library bintray jcenter jfrog-cli


    【解决方案1】:

    您的 pom 文件中似乎有 groupId 之外的文件。您在 library path 下有文件,而不是在 sharedpref 路径下。
    library 路径下也没有创建元数据。

    您可以查看user manual了解更多信息。

    【讨论】:

    • 那我该怎么办? @Royg我已经挣扎了好几天,没有任何运气。请帮忙
    • 看起来您的包已包含在 JCenter 中
    • 对于 Bintray 上的清洁包,我只会从 library 路径中删除文件。小心只删除那些文件。
    • 你能给我看一个 bintray 库的例子吗...或教程
    【解决方案2】:

    我已经将成功的2个库上传到Bintray和JCenter,我写了一个如何做的指南,你可以按照我的指南去做。

    Link library to bintray

    【讨论】:

      猜你喜欢
      • 2019-03-01
      • 2017-06-08
      • 1970-01-01
      • 2020-12-04
      • 1970-01-01
      • 1970-01-01
      • 2020-06-26
      • 2018-06-04
      • 1970-01-01
      相关资源
      最近更新 更多