【问题标题】:build error netflix fenzo library构建错误 netflix fenzo 库
【发布时间】:2018-07-25 08:00:57
【问题描述】:

Netflix fenzo (https://github.com/Netflix/Fenzo) 构建失败,抱怨来自 netflix 的 gradle 插件不可用。

下面的堆栈跟踪

> Configure project :
Inferred project: fenzo, version: 1.1.0-SNAPSHOT

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/UKHANVA/git/Fenzo/build.gradle' line: 32

* What went wrong:
A problem occurred evaluating root project 'fenzo'.
> Failed to apply plugin [class 'nebula.plugin.info.dependencies.DependenciesInfoPlugin']
   > Could not create plugin of type 'DependenciesInfoPlugin'.
      > No signature of method: org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.DefaultVersionComparator.asStringComparator() is applicable for argument types: () values: []
        Possible solutions: asVersionComparator()

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

* Get more help at https://help.gradle.org

BUILD FAILED in 12s

【问题讨论】:

  • 我下面的解释能回答你的问题吗?

标签: gradle netflix


【解决方案1】:

我怀疑您使用的是路径中的 gradle 版本:

gradle build

尝试使用存储库中的 gradle 包装脚本运行构建:

./gradlew build

包装器使用的gradle版本在gradle/wrapper/gradle-wrapper.properties中配置。 Fenzo 使用的是相当旧的 2.13。

通过尝试包装器版本,我发现它可以使用 Gradle 2.x 和 3.x 而不是 4.x 成功构建。

Gradle 4.0 给了我与上面完全相同的错误。 4.8 也失败了,但出现了不同的错误。

【讨论】:

    猜你喜欢
    • 2017-07-29
    • 2017-10-09
    • 1970-01-01
    • 2014-08-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多