【问题标题】:Griffon error Could not find property 'compileOnly' on configurationGriffon 错误在配置中找不到属性“compileOnly”
【发布时间】:2016-08-01 07:38:14
【问题描述】:

我尝试按照以下说明创建 Griffon 应用程序 http://griffon-framework.org/tutorials/1_getting_started.html#_tutorial_1_2

使用: Gradle 2.9
懒骨头 0.8.3
mvn 3.3.9

输入: lazybones create griffon-swing-java sample

Define value for 'group' [org.example]: 
Define value for 'artifactId' [sample]: 
Define value for 'version' [0.1.0-SNAPSHOT]: 
Define value for 'griffonVersion' [2.7.0]: 
Define value for 'package' [org.example]: 
Define value for 'className' [Sample]:

Project created in sample!

cd sample
gradle run

给出这个错误:

FAILURE: Build failed with an exception.

* Where:
Script '/home/username/dev/griffon_prj/sample/gradle/integration-test.gradle' line: 20

* What went wrong:
A problem occurred evaluating script.
> Could not find property 'compileOnly' on configuration container.

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

BUILD FAILED

我错过了什么吗?

【问题讨论】:

    标签: gradle griffon


    【解决方案1】:

    听起来像是 gradle 配置/脚本错误,gradle 2.9 版本可能有问题,教程提到 2.14。

    恕我直言,您应该安装 gradle 2.14.1,它工作正常。 我按照本教程做了一个 groovy-swing 应用程序,使用lazybones 0.8.3 和 gradle 2.14.1 没有任何问题。

    你可以有几个 gradle 安装,每个都在它自己的目录中,没有任何问题,如果你使用命令行,只是为了照顾路径和 GRADLE_HOME(你会为tuto)。

    猜你喜欢
    • 1970-01-01
    • 2018-03-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-03
    • 2019-02-06
    • 2019-03-08
    • 2014-06-24
    相关资源
    最近更新 更多