enonic / app-features

App that is used to test features.
Other
3 stars 0 forks source link

This app does not build with Java 11 #81

Closed sigdestad closed 5 years ago

sigdestad commented 5 years ago

Got this error:

~/app-features$ gradle build Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

BUILD FAILED in 2s

alansemenov commented 5 years ago

Did you make sure $JAVA_HOME points to correct java installation? It builds fine here.

sigdestad commented 5 years ago

That seems strange, here is what happens for me:

~/app-features$ ./gradlew build Downloading https://services.gradle.org/distributions/gradle-4.1-bin.zip ................................................................ Unzipping /Users/tsi/.gradle/wrapper/dists/gradle-4.1-bin/c3kp51zwwt108wc78u68yt7vs/gradle-4.1-bin.zip to /Users/tsi/.gradle/wrapper/dists/gradle-4.1-bin/c3kp51zwwt108wc78u68yt7vs Set executable permissions for: /Users/tsi/.gradle/wrapper/dists/gradle-4.1-bin/c3kp51zwwt108wc78u68yt7vs/gradle-4.1/bin/gradle

FAILURE: Build failed with an exception.

alansemenov commented 5 years ago

Are you sure you're on the master branch and you pulled the latest? Gradle wrapper in app-features has been upgraded to 4.10.2 a long time ago

https://github.com/enonic/app-features/blob/master/gradle/wrapper/gradle-wrapper.properties

sigdestad commented 5 years ago

Then, i did brew upgrade gradle, and got version 5.1.1, which also fails: Welcome to Gradle 5.1.1!

Here are the highlights of this release:

For more details see https://docs.gradle.org/5.1.1/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

BUILD FAILED in 19s

sigdestad commented 5 years ago

So, have no idea how this works for you?

sigdestad commented 5 years ago

Are you sure you're on the master branch and you pulled the latest? Gradle wrapper in app-features has been upgraded to 4.10.2 a long time ago

https://github.com/enonic/app-features/blob/master/gradle/wrapper/gradle-wrapper.properties

~/app-features$ git status On branch master Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean ~/app-features$

alansemenov commented 5 years ago

So, have no idea how this works for you?

Because I'm not on Gradle 5? Try building with the included wrapper.

sigdestad commented 5 years ago

Look at the earlier posts.

alansemenov commented 5 years ago

Upgraded gradle wrapper to 4.10.3