Improve remapped artifact names (#153)
* improve artifact names * fix indent * fix indent againdev/0.11
parent
cedddbbff5
commit
78f4983e61
|
@ -47,7 +47,7 @@ import org.gradle.language.base.artifact.SourcesArtifact;
|
||||||
import net.fabricmc.loom.LoomGradleExtension;
|
import net.fabricmc.loom.LoomGradleExtension;
|
||||||
|
|
||||||
public class ModCompileRemapper {
|
public class ModCompileRemapper {
|
||||||
public static void remapDependencies(Project project, String mappingsPrefix, LoomGradleExtension extension, Configuration modCompile, Configuration modCompileRemapped, Configuration regularCompile, Consumer<Runnable> postPopulationScheduler) {
|
public static void remapDependencies(Project project, String mappingsSuffix, LoomGradleExtension extension, Configuration modCompile, Configuration modCompileRemapped, Configuration regularCompile, Consumer<Runnable> postPopulationScheduler) {
|
||||||
Logger logger = project.getLogger();
|
Logger logger = project.getLogger();
|
||||||
DependencyHandler dependencies = project.getDependencies();
|
DependencyHandler dependencies = project.getDependencies();
|
||||||
|
|
||||||
|
@ -76,9 +76,9 @@ public class ModCompileRemapper {
|
||||||
|
|
||||||
File sources = findSources(dependencies, artifact);
|
File sources = findSources(dependencies, artifact);
|
||||||
|
|
||||||
String remappedLog = group + ":" + name + ":" + version + classifierSuffix + " (" + mappingsPrefix + ")";
|
String remappedLog = group + ":" + name + ":" + version + classifierSuffix + " (" + mappingsSuffix + ")";
|
||||||
String remappedNotation = "net.fabricmc.mapped:" + mappingsPrefix + "." + group + "." + name + ":" + version + classifierSuffix;
|
String remappedNotation = String.format("%s@%s", notation, mappingsSuffix);
|
||||||
String remappedFilename = mappingsPrefix + "." + group + "." + name + "-" + version + classifierSuffix.replace(':', '-');
|
String remappedFilename = String.format("%s-%s@%s", name, version + classifierSuffix.replace(':', '-'), mappingsSuffix);
|
||||||
project.getLogger().info(":providing " + remappedLog);
|
project.getLogger().info(":providing " + remappedLog);
|
||||||
|
|
||||||
File modStore = extension.getRemappedModCache();
|
File modStore = extension.getRemappedModCache();
|
||||||
|
|
Loading…
Reference in New Issue