This commit is contained in:
Xujiayao 2025-08-01 10:04:15 +08:00
parent 2dc1c15172
commit e5dd11df06
3 changed files with 13 additions and 60 deletions

View file

@ -1,48 +1,13 @@
//plugins {
// id 'com.gradleup.shadow' version '8.3.8'
// id "java"
//}
//
//allprojects {
// repositories {
// mavenCentral()
// maven {
// name = "IntelliJ Release"
// url = "https://www.jetbrains.com/intellij-repository/releases"
// }
// maven {
// name = "Fabric"
// url = "https://maven.fabricmc.net/"
// }
// // ...
//// gradlePluginPortal()
// }
//}
//
//dependencies {
// implementation project(':common')
// implementation project(':fabric')
// implementation project(':neoforge')
//}
//
//// jar
//shadowJar {
// archiveBaseName.set(mod_name + '-all')
// archiveClassifier.set('')
// archiveVersion.set(mod_version)
//
// //
// from(project(':common').sourceSets.main.output)
// from(project(':fabric').sourceSets.main.output)
// from(project(':neoforge').sourceSets.main.output)
//}
//
//jar {
// manifest {
// attributes "Main-Class": "com.xujiayao.discord_mc_chat.common.Main"
// }
//from("LICENSE") {
// rename { "${it}_${inputs.properties.archivesName}" }
//}
//}
allprojects {
repositories {
mavenCentral()
maven {
name = "IntelliJ Release"
url = "https://www.jetbrains.com/intellij-repository/releases"
}
maven {
name = "Fabric"
url = "https://maven.fabricmc.net/"
}
}
}

View file

@ -8,14 +8,6 @@ base {
archivesName = mod_name + "-fabric"
}
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:${minecraft_version}"

View file

@ -4,10 +4,6 @@ plugins {
version = mod_version
repositories {
// Add here additional repositories if required by some of the dependencies below.
}
base {
archivesName = mod_name + "-neoforge"
}