Update to Loom 0.10

This commit is contained in:
shedaniel
2021-12-09 01:40:05 +08:00
parent 0a64ecda1d
commit 5e338b40da
13 changed files with 133 additions and 83 deletions

View File

@@ -3,8 +3,6 @@ loom {
}
dependencies {
minecraft "com.mojang:minecraft:${rootProject.architectury.minecraft}"
mappings minecraft.officialMojangMappings()
// We depend on fabric loader here to use the fabric @Environment annotations
// Do NOT use other classes from fabric loader
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
@@ -19,12 +17,7 @@ publishing {
publications {
mavenCommon(MavenPublication) {
artifactId = rootProject.archivesBaseName
artifact(file("${project.buildDir}/libs/${project.archivesBaseName}-${project.version}.jar")) {
builtBy build
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
from components.java
}
}