Making 'gradlew build' work as expected, and generating HTML reports