summaryrefslogtreecommitdiffstats
path: root/neoforge/build.gradle
diff options
context:
space:
mode:
authorAizistral2024-05-03 13:42:40 +0200
committerAizistral2024-05-03 13:42:40 +0200
commit1c4a3753ea48709a1bb969617a0e43d8c481b6a3 (patch)
tree1108fe261fcf64f9d49b8ae89fcc95c6059d9e12 /neoforge/build.gradle
parent3c4c9a177b46c51b88f99112ca14e63f0a7a5729 (diff)
Update Gradle and NeoGradle versions
Diffstat (limited to 'neoforge/build.gradle')
-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 {