Skip to content

gradle buildAll fails with "Could not compile build file" #1

@travisfw

Description

@travisfw

I cloned, looked at the tasks, and called buildAll. It looks like it didn't even start building. If it works for you, it could be the gradle version. Try checking in a gradle wrapper.

JFXGen ) gradle buildAll

FAILURE: Build failed with an exception.

* Where:
Build file '/home/_/tmp/jfxgen/JFXGen/build.gradle' line: 4

* What went wrong:
Could not compile build file '/home/_/tmp/jfxgen/JFXGen/build.gradle'.
> startup failed:
  build file '/home/_/tmp/jfxgen/JFXGen/build.gradle': 4: Statement labels may not be used in build scripts.
  In case you tried to configure a property named 'group', replace ':' with '=' or ' ', otherwise it will not have the desired effect.
   @ line 4, column 10.
       group: 'carlfx'
              ^

  build file '/home/_/tmp/jfxgen/JFXGen/build.gradle': 5: Statement labels may not be used in build scripts.
  In case you tried to configure a property named 'version', replace ':' with '=' or ' ', otherwise it will not have the desired effect.
   @ line 5, column 12.
       version: '0.1'
                ^

  2 errors


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

BUILD FAILED

Total time: 0.666 secs

My gradle version is 2.14

JFXGen ) gradle --version

------------------------------------------------------------
Gradle 2.14
------------------------------------------------------------

Build time:   2016-06-14 07:16:37 UTC
Revision:     cba5fea19f1e0c6a00cc904828a6ec4e11739abc

Groovy:       2.4.4
Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM:          1.8.0_102 (Oracle Corporation 25.102-b14)
OS:           Linux 4.6.7-300.fc24.x86_64 amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions