Skip to content

Commit

Permalink
clarify docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Oct 9, 2024
1 parent 43b1e05 commit 1c075de
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
32 changes: 32 additions & 0 deletions docs/MULTIPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@ unimined.minecraft {
accessWidener {
accessWidener "src/main/resources/accessWidenerName.aw"
}
// you may want to set this if you want to include architectury mods in common
mods.modImplementation {
namespace("intermediary")
}
// if you don't want to build/remap a "common" jar
if (sourceSet == sourceSets.main) {
defaultRemapJar = false
}
}
// if not disabling remapJar above,
// you may want to set this so the "common" jar is in intermediary to match architectury
tasks.named("remapJar") {
prodNamespace("intermediary")
}
// forge
Expand Down Expand Up @@ -82,6 +98,22 @@ unimined.minecraft {
accessWidener {
accessWidener "src/main/resources/accessWidenerName.aw"
}
// you may want to set this if you want to include arch mods in common
mods.modImplementation {
namespace("intermediary")
}
// if you don't want to build/remap a "common" jar
if (sourceSet == sourceSets.main) {
defaultRemapJar = false
}
}
// if not disabling remapJar above,
// you may want to set this so the "common" jar is in intermediary to match architectury
tasks.named("remapJar") {
prodNamespace("intermediary")
}
```

Expand Down
9 changes: 8 additions & 1 deletion docs/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,14 @@ configurations {
unimined.minecraft {
...
mods {
remap(configurations.modCompileOnly)
remap(configurations.modCompileOnly) {
}
// this is basically just a shortcut for `remap(configurations.modImplementation)`
modImplementation {
// you can do this is mods have the wrong access widener mapping, but it may break runs
catchAWNamespaceAssertion()
}
}
}
Expand Down

0 comments on commit 1c075de

Please sign in to comment.