Set Java 8 compatibility in gradle
@@ -76,6 +76,13 @@ allprojects {
subprojects {
apply plugin: 'maven'
+ afterEvaluate {
+ if (project.plugins.hasPlugin('java')) {
+ sourceCompatibility = 1.8
+ targetCompatibility = 1.8
+ }
+ }
+
afterEvaluate {
if (project.plugins.hasPlugin('pegasus')) {
dependencies {
