小编M. *_*aka的帖子

无法使用 Gradle 中的新插件机制解析插件

在尝试将我们正在使用的插件上的一些脚本升级到 Gradle 4.0.1 时失败了,我想先修复该插件。该插件是第三方开源项目。

所以我克隆了这个项目并尝试编译它。但是它失败并显示以下消息:

c:\source\gradle-xld-plugin>gradlew build

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\source\gradle-xld-plugin\build.gradle' line: 2

* What went wrong:
Plugin [id: 'com.gradle.plugin-publish', version: '0.9.7'] was not found in 
any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- maven(https://artifactory/java-v) (Could not resolve plugin artifact 'com.gradle.plugin-publish:com.gradle.plugin-publish.gradle.plugin:0.9.7')

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --
debug option to get more log output.

BUILD …
Run Code Online (Sandbox Code Playgroud)

gradle gradle-plugin

6
推荐指数
1
解决办法
4262
查看次数

标签 统计

gradle ×1

gradle-plugin ×1