From 1c4a3753ea48709a1bb969617a0e43d8c481b6a3 Mon Sep 17 00:00:00 2001 From: Aizistral Date: Fri, 3 May 2024 13:42:40 +0200 Subject: Update Gradle and NeoGradle versions --- neoforge/build.gradle | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'neoforge') diff --git a/neoforge/build.gradle b/neoforge/build.gradle index 5d05b23..2495cbf 100644 --- a/neoforge/build.gradle +++ b/neoforge/build.gradle @@ -18,8 +18,11 @@ buildscript { } plugins { + id 'java-library' + id 'eclipse' + id 'idea' id "com.modrinth.minotaur" version "2.+" - id "net.neoforged.gradle.userdev" version "7.0.94" + id 'net.neoforged.gradle.userdev' version '7.0.109' } println("Applying plugins...") @@ -79,6 +82,10 @@ sourceSets.main.resources { // NO-OP } +configurations { + runtimeClasspath.extendsFrom localRuntime +} + repositories { println("Specifying repositories...") maven { url "file:///${project.projectDir}/deps/" } // local @@ -200,6 +207,18 @@ tasks.updateResources.dependsOn processResources // options.failOnError(true) //} +tasks.withType(JavaCompile).configureEach { + options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation +} + +// IDEA no longer automatically downloads sources/javadoc jars for dependencies, so we need to explicitly enable the behavior. +idea { + module { + downloadSources = true + downloadJavadoc = true + } +} + publishing { publications { -- cgit v1.2.3