mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 13:37:45 -05:00
General cleanup by making use of java 16 features (#397)
* General cleanup by making use of java 16 features * use jackson-databind in place of gson when reading to a record * Fixes * cleanup * dep updates * Replace commons IOUtils usage with native java * Update fernflower
This commit is contained in:
@@ -27,35 +27,11 @@ package net.fabricmc.loom.configuration;
|
||||
import org.gradle.api.artifacts.ConfigurationContainer;
|
||||
import org.gradle.api.plugins.JavaPlugin;
|
||||
|
||||
public class RemappedConfigurationEntry {
|
||||
private final String sourceConfiguration;
|
||||
private final String targetConfiguration;
|
||||
private final String mavenScope;
|
||||
private final boolean isOnModCompileClasspath;
|
||||
|
||||
public RemappedConfigurationEntry(String sourceConfiguration, String targetConfiguration, boolean isOnModCompileClasspath, String mavenScope) {
|
||||
this.sourceConfiguration = sourceConfiguration;
|
||||
this.targetConfiguration = targetConfiguration;
|
||||
this.isOnModCompileClasspath = isOnModCompileClasspath;
|
||||
this.mavenScope = mavenScope;
|
||||
}
|
||||
|
||||
public String getMavenScope() {
|
||||
return mavenScope;
|
||||
}
|
||||
|
||||
public record RemappedConfigurationEntry(String sourceConfiguration, String targetConfiguration, boolean isOnModCompileClasspath, String mavenScope) {
|
||||
public boolean hasMavenScope() {
|
||||
return mavenScope != null && !mavenScope.isEmpty();
|
||||
}
|
||||
|
||||
public boolean isOnModCompileClasspath() {
|
||||
return isOnModCompileClasspath;
|
||||
}
|
||||
|
||||
public String getSourceConfiguration() {
|
||||
return sourceConfiguration;
|
||||
}
|
||||
|
||||
public String getRemappedConfiguration() {
|
||||
return sourceConfiguration + "Mapped";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user