depandencies imported

This commit is contained in:
ggodot 2025-09-28 09:32:50 +02:00
parent 06ba9c4f41
commit 8e0362abe1
2 changed files with 25 additions and 21 deletions

View File

@ -112,32 +112,26 @@ sourceSets.main.resources { srcDir 'src/generated/resources' }
repositories { repositories {
// Put repositories for dependencies here // Put repositories for dependencies here
// ForgeGradle automatically adds the Forge maven and Maven Central for you // ForgeGradle automatically adds the Forge maven and Maven Central for you
exclusiveContent {
// If you have mod jar dependencies in ./libs, you can declare them as a repository like so. forRepository {
// See https://docs.gradle.org/current/userguide/declaring_repositories.html#sub:flat_dir_resolver maven {
// flatDir { url "https://cursemaven.com"
// dir 'libs' }
// } }
filter {
includeGroup "curse.maven"
}
}
} }
dependencies { dependencies {
// Specify the version of Minecraft to use. minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
// 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}"
// Example mod dependency with JEI compileOnly "curse.maven:curios-309927:5266541"
// The JEI API is declared for compile time use, while the full JEI artifact is used at runtime compileOnly "curse.maven:sophisticated-backpacks-422301:6303388"
// compileOnly "mezz.jei:jei-${mc_version}-common-api:${jei_version}" compileOnly "curse.maven:sophisticated-core-618298:6317048"
// compileOnly "mezz.jei:jei-${mc_version}-forge-api:${jei_version}"
// runtimeOnly "mezz.jei:jei-${mc_version}-forge:${jei_version}"
// Example mod dependency using a mod jar from ./libs with a flat dir repository implementation "curse.maven:mariadb-jdbc-561883:3586357"
// 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}")
// For more info: // For more info:
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
@ -215,3 +209,12 @@ sourceSets.each {
it.output.resourcesDir = dir it.output.resourcesDir = dir
it.java.destinationDirectory = 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
}
}

View File

@ -57,3 +57,4 @@ mod_group_id=com.example.examplemod
mod_authors=YourNameHere, OtherNameHere 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. # 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. mod_description=Example mod description.\nNewline characters can be used and will be replaced properly.