Skip to content

Commit

Permalink
not launching atm
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfudge committed May 5, 2023
1 parent 61c4adf commit 84aeda0
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 23 deletions.
28 changes: 18 additions & 10 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ plugins {
}

configurations {
shadowCommon
common
shadowCommon // Don't use shadow from the shadow plugin since it *excludes* files.
compileClasspath.extendsFrom common
runtimeClasspath.extendsFrom common
developmentFabric.extendsFrom common
}

architectury {
Expand Down Expand Up @@ -37,15 +41,8 @@ dependencies {
// Uncomment to add the test mod at runtime
// runtimeOnly project(path: ":TestFabricMod", configuration: "namedElements")

implementation(project(path: ":common", configuration: "dev")) {
transitive = false
}
developmentFabric(project(path: ":common", configuration: "dev")) {
transitive = false
}
shadowCommon(project(path: ":common", configuration: "transformProductionFabric")) {
transitive = false
}
common(project(path: ":common", configuration: "namedElements")) { transitive false }
shadowCommon(project(path: ":common", configuration: "transformProductionFabric")) { transitive false }
}


Expand All @@ -62,15 +59,26 @@ processResources {
}

shadowJar {
exclude "architectury.common.json"
configurations = [project.configurations.shadowCommon]
classifier "dev-shadow"
}

remapJar {
// injectAccessWidener = true
input.set shadowJar.archiveFile
dependsOn shadowJar
classifier "fabric"
}
jar {
classifier "dev"
}

components.java {
withVariantsFromConfiguration(project.configurations.shadowRuntimeElements) {
skip()
}
}

// Asset files will otherwise be missing when debugging
//task copyAssetFilesForDebugging(type: Copy) {
Expand Down
25 changes: 14 additions & 11 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ plugins {
}

configurations {
shadowCommon
common
shadowCommon // Don't use shadow from the shadow plugin since it *excludes* files.
compileClasspath.extendsFrom common
runtimeClasspath.extendsFrom common
developmentForge.extendsFrom common
}

architectury {
Expand All @@ -27,15 +31,9 @@ dependencies {
// Uncomment to add the test mod at runtime
// runtimeOnly project(path: ":TestForgeMod", configuration: "namedElements")

compileOnly(project(path: ":common", configuration: "dev")) {
transitive = false
}
developmentForge(project(path: ":common", configuration: "dev")) {
transitive = false
}
shadowCommon(project(path: ":common", configuration: "transformProductionForge")) {
transitive = false
}
common(project(path: ":common", configuration: "namedElements")) { transitive false }
shadowCommon(project(path: ":common", configuration: "transformProductionForge")) { transitive = false }

}

processResources {
Expand All @@ -48,6 +46,7 @@ processResources {

shadowJar {
exclude "fabric.mod.json"
exclude "architectury.common.json"

configurations = [project.configurations.shadowCommon]
classifier "dev-shadow"
Expand All @@ -71,7 +70,11 @@ jar {
java {
withSourcesJar()
}

components.java {
withVariantsFromConfiguration(project.configurations.shadowRuntimeElements) {
skip()
}
}


curseforge {
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod_version = "4.4.0"

# Gradle Plugins
architectury_plugin = "3.4-SNAPSHOT"
architectury_loom = "1.0-SNAPSHOT"
architectury_loom = "1.1-SNAPSHOT"
minotaur = "2.5.0"
loom_quiltflower = "1.8.0"
cursegradle = "1.4.0" # Must be updated in settings.gradle as well!
Expand All @@ -34,7 +34,7 @@ overrides_modrinth = "mc"
# Mods & Libraries
yarn_mappings = "1.19.4+build.1"
fabric_loader = "0.14.19"
fabric_api = "0.77.0+1.19.4"
fabric_api = "0.78.0+1.19.4"
quilt_loader = "0.17.6"
forge = "45.0.43"
architectury_api = "8.1.79"
Expand Down

0 comments on commit 84aeda0

Please sign in to comment.