Save commit for new build system

This commit is contained in:
coolGi
2022-11-14 21:51:09 +10:30
parent de744d1f10
commit 4fe24abc51
17 changed files with 287 additions and 272 deletions
+8 -12
View File
@@ -1,27 +1,23 @@
architectury {
common(rootProject.enabled_platforms.split(","))
plugins {
id 'org.spongepowered.gradle.vanilla' version '0.2.1-SNAPSHOT'
}
loom {
accessWidenerPath = file("src/main/resources/lod.accesswidener")
minecraft {
accessWideners(project(":common").file("src/main/resources/${rootProject.accessWidenerVersion}.lod.accesswidener"))
version(rootProject.minecraft_version)
}
dependencies {
// We depend on fabric loader here to use the fabric @Environment annotations and get the mixin dependencies
// Do NOT use other classes from fabric loader
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
if (minecraft_version == "1.16.5") {
modApi("me.shedaniel:architectury:${rootProject.architectury_version}")
} else {
modApi("dev.architectury:architectury:${rootProject.architectury_version}")
}
// modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
}
publishing {
publications {
mavenCommon(MavenPublication) {
artifactId = rootProject.archives_base_name
artifactId = rootProject.mod_readable_name
from components.java
}
}