Skip to content

Commit

Permalink
Update Gradle and NeoGradle versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Aizistral committed May 3, 2024
1 parent 3c4c9a1 commit 1c4a375
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
21 changes: 20 additions & 1 deletion neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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...")
Expand Down Expand Up @@ -79,6 +82,10 @@ sourceSets.main.resources {
// NO-OP
}

configurations {
runtimeClasspath.extendsFrom localRuntime
}

repositories {
println("Specifying repositories...")
maven { url "file:///${project.projectDir}/deps/" } // local
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 1c4a375

Please sign in to comment.