From 8e0362abe12a0904e51ead52b8f08baf2fca3330 Mon Sep 17 00:00:00 2001 From: ggodot Date: Sun, 28 Sep 2025 09:32:50 +0200 Subject: [PATCH] depandencies imported --- build.gradle | 45 ++++++++++++++++++++++++--------------------- gradle.properties | 1 + 2 files changed, 25 insertions(+), 21 deletions(-) diff --git a/build.gradle b/build.gradle index 749a746..69cf9fd 100644 --- a/build.gradle +++ b/build.gradle @@ -112,32 +112,26 @@ sourceSets.main.resources { srcDir 'src/generated/resources' } repositories { // Put repositories for dependencies here // ForgeGradle automatically adds the Forge maven and Maven Central for you - - // If you have mod jar dependencies in ./libs, you can declare them as a repository like so. - // See https://docs.gradle.org/current/userguide/declaring_repositories.html#sub:flat_dir_resolver - // flatDir { - // dir 'libs' - // } + exclusiveContent { + forRepository { + maven { + url "https://cursemaven.com" + } + } + filter { + includeGroup "curse.maven" + } + } } dependencies { - // Specify the version of Minecraft to use. - // Any artifact can be supplied so long as it has a "userdev" classifier artifact and is a compatible patcher artifact. - // The "userdev" classifier will be requested and setup by ForgeGradle. - // If the group id is "net.minecraft" and the artifact id is one of ["client", "server", "joined"], - // then special handling is done to allow a setup of a vanilla dependency without the use of an external repository. - minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" + minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" - // Example mod dependency with JEI - // The JEI API is declared for compile time use, while the full JEI artifact is used at runtime - // compileOnly "mezz.jei:jei-${mc_version}-common-api:${jei_version}" - // compileOnly "mezz.jei:jei-${mc_version}-forge-api:${jei_version}" - // runtimeOnly "mezz.jei:jei-${mc_version}-forge:${jei_version}" + compileOnly "curse.maven:curios-309927:5266541" + compileOnly "curse.maven:sophisticated-backpacks-422301:6303388" + compileOnly "curse.maven:sophisticated-core-618298:6317048" - // Example mod dependency using a mod jar from ./libs with a flat dir repository - // This maps to ./libs/coolmod-${mc_version}-${coolmod_version}.jar - // The group id is ignored when searching -- in this case, it is "blank" - // implementation fg.deobf("blank:coolmod-${mc_version}:${coolmod_version}") + implementation "curse.maven:mariadb-jdbc-561883:3586357" // For more info: // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html @@ -215,3 +209,12 @@ sourceSets.each { it.output.resourcesDir = dir it.java.destinationDirectory = dir } + + +// IDEA no longer automatically downloads sources/javadoc jars for dependencies, so we need to explicitly enable the behavior. +idea { + module { + downloadSources = true + downloadJavadoc = true + } +} diff --git a/gradle.properties b/gradle.properties index 2022638..8035d62 100644 --- a/gradle.properties +++ b/gradle.properties @@ -57,3 +57,4 @@ mod_group_id=com.example.examplemod mod_authors=YourNameHere, OtherNameHere # The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list. mod_description=Example mod description.\nNewline characters can be used and will be replaced properly. +