From 64f7ba2c82b45748065e68a3ca9236cfa64a9028 Mon Sep 17 00:00:00 2001
From: Leonard <Leonard@Leonard.Leo>
Date: Tue, 9 Jun 2020 20:46:22 +0300
Subject: [PATCH] correct java version

---
 build.gradle | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/build.gradle b/build.gradle
index 75262f93..4e65487b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -41,7 +41,11 @@ allprojects {
 project(":desktop") {
     apply plugin: "java-library"
 
-
+	java {
+		sourceCompatibility = JavaVersion.VERSION_1_8
+		targetCompatibility = JavaVersion.VERSION_1_8
+	}
+	
     dependencies {
         implementation project(":core")
         api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
@@ -65,7 +69,11 @@ project(":desktop") {
 
 project(":core") {
     apply plugin: "java-library"
-
+	
+	java {
+		sourceCompatibility = JavaVersion.VERSION_1_8
+		targetCompatibility = JavaVersion.VERSION_1_8
+	}
 
     dependencies {
         api "com.badlogicgames.gdx:gdx:$gdxVersion"
-- 
GitLab