From 83959d5c26b61cf4e63471cce588151a4dc49e41 Mon Sep 17 00:00:00 2001 From: Luke Bemish Date: Tue, 9 Apr 2024 02:59:13 -0500 Subject: [PATCH 1/2] Remove project from resource processing template replacement (#45) --- build.gradle | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 462b825..62cb259 100644 --- a/build.gradle +++ b/build.gradle @@ -110,16 +110,22 @@ dependencies { // See https://docs.gradle.org/current/dsl/org.gradle.language.jvm.tasks.ProcessResources.html tasks.withType(ProcessResources).configureEach { var replaceProperties = [ - minecraft_version : minecraft_version, minecraft_version_range: minecraft_version_range, - neo_version : neo_version, neo_version_range: neo_version_range, - loader_version_range: loader_version_range, - mod_id : mod_id, mod_name: mod_name, mod_license: mod_license, mod_version: mod_version, - mod_authors : mod_authors, mod_description: mod_description, + minecraft_version : minecraft_version, + minecraft_version_range: minecraft_version_range, + neo_version : neo_version, + neo_version_range : neo_version_range, + loader_version_range : loader_version_range, + mod_id : mod_id, + mod_name : mod_name, + mod_license : mod_license, + mod_version : mod_version, + mod_authors : mod_authors, + mod_description : mod_description ] inputs.properties replaceProperties filesMatching(['META-INF/mods.toml']) { - expand replaceProperties + [project: project] + expand replaceProperties } } From 6074a78fba8aea8453e10017244da6c385c78109 Mon Sep 17 00:00:00 2001 From: Jozufozu Date: Sat, 13 Apr 2024 02:07:00 -0700 Subject: [PATCH 2/2] Configure idea to download sources and javadocs (#47) --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle b/build.gradle index 62cb259..a9e5a45 100644 --- a/build.gradle +++ b/build.gradle @@ -146,3 +146,11 @@ publishing { 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 + } +}