gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 03:43:01 25 4
gpt4 key购买 nike

我正在尝试使用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/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com