Allow source jars to use their own parameter names for mod deps (#147)

* formatting

* spaaaace
This commit is contained in:
Fudge
2019-11-13 14:32:44 +02:00
committed by modmuss50
parent 54ac2df5dc
commit 4ca20fb39e
3 changed files with 18 additions and 12 deletions

View File

@@ -128,7 +128,7 @@ public class ModCompileRemapper {
if (!output.exists() || input.lastModified() <= 0 || input.lastModified() > output.lastModified()) {
//If the output doesn't exist, or appears to be outdated compared to the input we'll remap it
try {
ModProcessor.processMod(input, output, project, config);
ModProcessor.processMod(input, output, project, config, artifact);
} catch (IOException e) {
throw new RuntimeException("Failed to remap mod", e);
}
@@ -143,7 +143,7 @@ public class ModCompileRemapper {
}
}
private static File findSources(DependencyHandler dependencies, ResolvedArtifact artifact) {
public static File findSources(DependencyHandler dependencies, ResolvedArtifact artifact) {
@SuppressWarnings("unchecked") ArtifactResolutionQuery query = dependencies.createArtifactResolutionQuery()//
.forComponents(artifact.getId().getComponentIdentifier())//
.withArtifacts(JvmLibrary.class, SourcesArtifact.class);