Question

I am trying to patch hibernate due to HHH-6960. However, the following issue arrises when executing gradle clean build.

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Work\Samples\hibernate-release-4.1.2.Final\project\documentation\documentation.gradle' line: 13

* What went wrong:
A problem occurred evaluating project ':documentation'.
> Could not find property 'buildDirName' on project ':documentation'.

* 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: 11.502 secs
PS C:\Work\Samples\hibernate-release-4.1.2.Final\project\hibernate-envers>

This straight out of the box without any modifications... i simply downloaded hibernate and gradle and ran it. I'm new to gradle so what am i doing wrong?

Thanks in advance.

Était-ce utile?

La solution

You say you downloaded hibernate AND gradle? You don't need to download gradle manually to run the hibernate build. Instead of using your local installation of gradle you should use the gradlewrapper (the gradlew / gradlew.bat script in the root of the hibernate sources) to build gradle. does this solve your issues?

Autres conseils

The problem you have with Gradle is the scripts are written using the version incompatible with the one you installed. Gradle is such a product that often looses backward compatibility because it's in active development.

You can either use gradlew scripts as the fastest solution, because they don't require you installing anything, or just take a look inside at those gradlew, they contain the version of Gradle these scripts require.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top