Gradle sourceCompatibility has no effect to subprojects
It seems this behavior is caused by specifying the sourceCompatibility before apply plugin: ‘java’, which happens if you try to set the compatibility option inside allprojects. In my setup, the situation can be solved by replacing: allprojects { sourceCompatibility = 1.6 targetCompatibility = 1.6 } with: allprojects { apply plugin: ‘java’ sourceCompatibility = 1.6 targetCompatibility … Read more