I deleted everything from the .gradle folder and run Cuba \ Build Tasks \ Assemble and it download 4.10.3 inside the .gradle folder and get the mentioned error
If I delete everything again and run ./gradlew --version I get:
------------------------------------------------------------
Gradle 5.6.4
------------------------------------------------------------
Build time: 2019-11-01 20:42:00 UTC
Revision: dd870424f9bd8e195d614dc14bb140f43c22da98
Kotlin: 1.3.41
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.14 compiled on March 12 2019
JVM: 1.8.0_201 (Oracle Corporation 25.201-b09)
OS: Windows 10 10.0 amd64
if I run ./gradlew clean assemble than 5.6.4 appears in the .gradle folder and I get this error:
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
25 errors
> Task :app-web:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app-web:compileJava'.
Why does it use 2 versions of Gradle? How do I fix this?
Hi,
Normally CUBA 7.2 project should use Gradle 5.6.4, and either Java 8 or 11.
If you have compilation errors in your build.gradle script, there may be problems in your build.gradle file, maybe some legacy code that doesn’t work anymore in CUBA 7.2.
You can create a fresh 7.2 project, add custom themes / theme extensions there and check how the clean build.gradle will look like.
Here is part of my build script with custom themes, I present only webModule configuration: