Add log4j. Gradle script refactoring.
Add log4j. Gradle script refactoring.