A project was using gradle wrapper 4.6 and I had to updated it to 5.0 because my pc has java 11 installed. When using gradlew 4.6 with java 8 build was ok. After upg