summaryrefslogtreecommitdiffstats
path: root/neoforge
diff options
context:
space:
mode:
Diffstat (limited to 'neoforge')
-rw-r--r--neoforge/build.gradle21
1 files changed, 20 insertions, 1 deletions
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 {