gradlew specify java version code example
Example: gradle require java version
// build.gradle
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
// build.gradle
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8