Skip to content

Commit

Permalink
Fix named attributes in legacy failing when reading back data from Mo…
Browse files Browse the repository at this point in the history
…dule Metadata
  • Loading branch information
shartte committed Jan 8, 2025
1 parent 45b17f2 commit 6b5c0e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package net.neoforged.moddevgradle.legacyforge.internal;

import java.net.URI;
import java.util.stream.Stream;
import javax.inject.Inject;
import net.neoforged.minecraftdependencies.MinecraftDependenciesPlugin;
import net.neoforged.moddevgradle.internal.ArtifactNamingStrategy;
import net.neoforged.moddevgradle.internal.Branding;
Expand Down Expand Up @@ -31,10 +34,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.inject.Inject;
import java.net.URI;
import java.util.stream.Stream;

@ApiStatus.Internal
public class LegacyForgeModDevPlugin implements Plugin<Project> {
private static final Logger LOG = LoggerFactory.getLogger(LegacyForgeModDevPlugin.class);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package net.neoforged.moddevgradle.legacyforge.internal;

import javax.inject.Inject;
import org.gradle.api.attributes.AttributeDisambiguationRule;
import org.gradle.api.attributes.MultipleCandidatesDetails;

import javax.inject.Inject;

/**
* This disambiguation rule will prefer NAMED over SRG when both are present.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package net.neoforged.moddevgradle.legacyforge.internal;

import java.util.Locale;
import org.gradle.api.Named;
import org.gradle.api.attributes.Attribute;
import org.jetbrains.annotations.ApiStatus;
Expand Down

0 comments on commit 6b5c0e2

Please sign in to comment.