From 2d7f9301dbf3e31c6405b37af99d382501ca77b2 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 1 May 2019 09:52:59 +0200 Subject: [PATCH] Set source and target compatibility --- build.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index ccf19913..672ae6e9 100644 --- a/build.gradle +++ b/build.gradle @@ -22,8 +22,9 @@ apply plugin: 'eclipse' apply plugin: 'com.github.johnrengelman.shadow' apply plugin: 'org.ajoberstar.grgit' -sourceCompatibility = '1.8' -targetCompatibility = '1.8' +// From the forge MDK: Need this here so eclipse task generates correctly. +targetCompatibility = compileJava.targetCompatibility = 1.8 +sourceCompatibility = compileJava.sourceCompatibility = 1.8 ext { revision = grgit.log().size()