From 8a375213b3705f9a3f4da7168add669eaaac6398 Mon Sep 17 00:00:00 2001 From: Aizistral Date: Tue, 7 May 2024 16:55:03 +0200 Subject: Make client runnable --- build.gradle | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'build.gradle') diff --git a/build.gradle b/build.gradle index 04a9208..ccd32fe 100644 --- a/build.gradle +++ b/build.gradle @@ -1,15 +1,12 @@ import org.apache.tools.ant.taskdefs.condition.Os plugins { - id 'fabric-loom' version '1.1-SNAPSHOT' + id 'fabric-loom' version '1.6-SNAPSHOT' id 'maven-publish' id "com.modrinth.minotaur" version "2.+" id "com.matthewprenger.cursegradle" version "1.+" } -sourceCompatibility = JavaVersion.VERSION_21 -targetCompatibility = JavaVersion.VERSION_21 - archivesBaseName = project.archives_base_name version = project.mod_version group = project.maven_group @@ -59,6 +56,17 @@ def setupLinks() { setupLinks() +tasks.withType(JavaCompile).configureEach { + it.options.release = 21 +} + +java { + // withSourcesJar() + + sourceCompatibility = JavaVersion.VERSION_21 + targetCompatibility = JavaVersion.VERSION_21 +} + loom { accessWidenerPath = file("src/main/resources/nochatreports.accesswidener") -- cgit v1.2.3