diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a5952066..17655d0e 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/neoforge/build.gradle b/neoforge/build.gradle index 5d05b23a..2495cbfb 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 {