switch to unimined

This commit is contained in:
Wagyourtail
2022-12-01 23:04:40 -07:00
parent 4fa43ce201
commit 85790c0b2f
15 changed files with 202 additions and 351 deletions

View File

@@ -24,8 +24,7 @@ plugins {
archivesBaseName = archivesBaseName + "-" + project.name
architectury {
platformSetupLoomIde()
minecraft {
fabric()
}
@@ -34,14 +33,17 @@ configurations {
shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this.
compileClasspath.extendsFrom common
runtimeClasspath.extendsFrom common
developmentFabric.extendsFrom common
}
dependencies {
modImplementation "net.fabricmc:fabric-loader:${project.fabric_version}"
fabric "net.fabricmc:fabric-loader:${project.fabric_version}"
common(project(path: ":common", configuration: "namedElements")) { transitive false }
shadowCommon(project(path: ":common", configuration: "transformProductionFabric")) { transitive false }
// because of multiple sourcesets `common project(":")` doesn't work
for (sourceSet in rootProject.sourceSets) {
if (sourceSet == rootProject.sourceSets.test) continue
common sourceSet.output
shadowCommon sourceSet.output
}
}
processResources {
@@ -58,7 +60,7 @@ shadowJar {
}
remapJar {
input.set shadowJar.archiveFile
inputFile.set shadowJar.archiveFile
dependsOn shadowJar
classifier null
}