We should enforce the java version:
```groovy
allprojects { Project prj ->
    if (prj.plugins.hasPlugin('java')) {
        sourceCompatibility = '1.6'
        targetCompatibility = '1.6'
    }
}
```