deployment - Bintray:无法创建程序包HTTP/1.1 400错误的请求[消息:许可证 '['不存在]

标签 deployment gradle gradle-plugin bintray jcenter

我正在尝试使用Overpass libraryBintray/jCenter的第一个发行版发布到gradle-bintray-plugin v.1.5。我在temporary branch上准备了配置:

  • build.gradle
  • deploy.gradle
  • gradle.properties

  • 除了以前发布过的帐户外,我没有在Bintray网站上做任何准备。因此,我还为Gradle准备了一个bintrayUserbintrayApiKey。请告诉我是否需要事先手动设置。 -然后,我运行以下命令:
    $ ./gradlew clean assemble bintrayUpload
    

    失败并显示以下错误:

    Execution failed for task ':bintrayUpload'.
    > Could not create package 'tbsprs/maven/Overpass': HTTP/1.1 400 Bad Request [message:License '[' does not exist]



    你能发现错误吗?

    最佳答案

    我设法通过临时替换以下内容来释放该库:

    licenses = project.packageLicenses
    


    licenses = ['Apache-2.0']
    

    请注意,我使用gradle.properties将这些值保存在一个地方。
    我已经报告了此行为,希望该错误能尽快修复。

    这是此情况的跟进问题:
  • https://github.com/bintray/gradle-bintray-plugin/issues/98
  • 关于deployment - Bintray:无法创建程序包HTTP/1.1 400错误的请求[消息:许可证 '['不存在],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34005470/

    相关文章:

    java - Glassfish 中加载的类总数

    asp.net - 将 ASP.Net 网站从 SVN 部署到多台服务器?

    Gradle Shadow 插件依赖项不存在于 runtimeClasspath 中

    Gradle plugin-publish 插件正在跳过依赖项排除

    python - 如何在一个目录中为一个项目创建多个 docker 镜像?

    ruby-on-rails - 设置 mina 时出错

    java - Gradle:无法应用 'compile'

    Android 在 docker 容器中构建

    java - 使用 bmuschko/gradle-docker-plugin 进行 Gradle 清理任务

    maven - 自定义Gradle插件找不到它自己的Maven依赖项