gpt4 book ai didi

gradle-bintray-plugin 插件 [id : 'com.jfrog.bintray' , 版本: '1.+'] 未找到

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

我正在尝试使用 gradle 插件 gradle-bintray-plugin

目前使用 Gradle 4.4

关注 the tutorial in the github page我应该以这种方式添加插件:

plugins {
...
id "com.jfrog.bintray" version "1.+"
}

我收到此错误消息但无法继续:

Plugin [id: 'com.jfrog.bintray', version: '1.+'] was not found in any of the following sources:

  • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
  • Plugin Repositories (dynamic plugin versions are not supported) Open File

最佳答案

过去可能为 plugins block 授权了动态版本(如教程中给出的示例),但现在 it's forbidden

if (versionSelectorScheme.parseSelector(markerVersion).isDynamic()) {
result.notFound(SOURCE_NAME, "dynamic plugin versions are not supported");
return;
}

但旧的 buildscript 方式并非如此,下面的代码在 Gradle 4.10 上运行良好

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.+'
}
}

关于gradle-bintray-plugin 插件 [id : 'com.jfrog.bintray' , 版本: '1.+'] 未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52249241/

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