Improve remapped artifact names (#153)

* improve artifact names

* fix indent

* fix indent again
dev/0.11
Fudge 2019-11-28 23:14:48 +02:00 committed by modmuss50
parent cedddbbff5
commit 78f4983e61
1 changed files with 4 additions and 4 deletions

View File

@ -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();