diff options
author | YTG123 <54103478+YTG1234@users.noreply.github.com> | 2021-02-07 19:38:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-07 17:38:57 +0000 |
commit | 8299566cf7ae3bc6ac088e821fd26d26d97e4229 (patch) | |
tree | 5c0054ccd4a70d4c5ccf73e759aa1415be03dbb1 /build.gradle | |
parent | 171c0a228af55a644d792db685e152e5cf476197 (diff) |
Improve description of repositories blocks (#81)
* Update build.gradle * Implements @liach's suggested changes * Update build.gradle Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> * Update build.gradle Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> * Update build.gradle * Update build.gradle Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/build.gradle b/build.gradle index 62083f9..8c07787 100644 --- a/build.gradle +++ b/build.gradle @@ -10,6 +10,14 @@ archivesBaseName = project.archives_base_name version = project.mod_version group = project.maven_group +repositories { + // Add repositories to retrieve artifacts from in here. + // You should only use this when depending on other mods because + // Loom adds the essential maven repositories to download Minecraft and libraries from automatically. + // See https://docs.gradle.org/current/userguide/declaring_repositories.html + // for more information about repositories. +} + dependencies { // To change the versions see the gradle.properties file minecraft "com.mojang:minecraft:${project.minecraft_version}" @@ -73,10 +81,12 @@ publishing { } } } - - // Select the repositories you want to publish to - // To publish to maven local, no extra repositories are necessary. Just use the task `publishToMavenLocal`. - repositories { - // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. - } + + // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. + repositories { + // Add repositories to publish to here. + // Notice: This block does NOT have the same function as the block in the top level. + // The repositories here will be used for publishing your artifact, not for + // retrieving dependencies. + } } |