File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/legacy/java/net/neoforged/moddevgradle/legacyforge/dsl Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -68,9 +68,12 @@ obfuscation {
6868
6969When reobfuscating a jar, it will be replaced in publications with the obfuscated version to avoid publishing jars that aren't mapped to SRG.
7070
71- ## Remapping mod dependencies
71+ ## Remapping Mod Dependencies
7272As published mods are using intermediary mappings, you must remap them to official mappings before being able to use them as a dependencies.
73- ModDevGradle creates configurations that will automatically remap dependencies added to them from SRG mappings to official mappings.
73+ ModDevGradle creates configurations that will automatically remap dependencies added to them from SRG mappings to official mappings.
74+
75+ ** IMPORTANT:** These configurations are not transitive, you will have to manually add transitive dependencies of the mods you are adding.
76+
7477The following configurations are created automatically and are children of the configurations without the ` mod ` prefix:
7578- ` modImplementation `
7679- ` modRuntimeOnly `
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ public Configuration createRemappingConfiguration(Configuration parent) {
119119 c .attributes (a -> a .attribute (LegacyForgeModDevPlugin .REMAPPED , true ));
120120 });
121121 });
122+ externalModuleDependency .setTransitive (false );
122123 } else if (dep instanceof FileCollectionDependency fileCollectionDependency ) {
123124 project .getDependencies ().constraints (constraints -> {
124125 constraints .add (parent .getName (), fileCollectionDependency .getFiles (), c -> {
@@ -131,6 +132,7 @@ public Configuration createRemappingConfiguration(Configuration parent) {
131132 c .attributes (a -> a .attribute (LegacyForgeModDevPlugin .REMAPPED , true ));
132133 });
133134 });
135+ projectDependency .setTransitive (false );
134136 }
135137 }));
136138 });
You can’t perform that action at this time.
0 commit comments