Gradle Build fail errors when building bonita

1
0
-1

Hey,

I built the whole bonita environment through this link (https://github.com/Bonitasoft-Community/Build-Bonita) on an ubuntu docker image, which worked quite well. When I am trying to replicate the same on an EC2 ubuntu instance, I face a gradle build error, as below

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
100 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':bpm:bonita-common:compileJava'.
> Compilation failed; see the compiler error output for details.

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 8s
98 actionable tasks: 7 executed, 91 up-to-date

I have followed all the steps given on the link, it would be great if someone could help me out.

Thanks!

Comments

Submitted by baptiste.mesta on Fri, 10/04/2019 - 13:49

Hello,

Errors should be print in the logs.
Can you provide the full list of errors?

Thanks.

Submitted by emmanuel.duchas... on Fri, 10/04/2019 - 14:19

I agree with baptiste.mesta, the details of the compilation errors should be displayed above.
Could you also check which version of the JDK you are using.

Regards,

1 answer

1
+1
-1
This one is the BEST answer!

Hey,
I have JDK 8 and 11 installed.
I solved this error by exporting the env variable JAVA_HOME with "/usr/lib/jvm/java-8-openjdk-amd64/" on an ubuntu machine.

Thanks!

Notifications