More work on runs

This commit is contained in:
Jason Penilla
2024-11-28 14:53:45 -07:00
parent 9b6982bf65
commit 882d733203
7 changed files with 122 additions and 66 deletions

View File

@@ -0,0 +1,14 @@
import java.util.Objects;
import org.gradle.api.artifacts.ComponentMetadataContext;
import org.gradle.api.artifacts.ComponentMetadataRule;
public abstract class RemoveAsmDependency implements ComponentMetadataRule {
@Override
public void execute(final ComponentMetadataContext ctx) {
ctx.getDetails().allVariants(variant -> {
variant.withDependencies(deps -> {
deps.removeIf(dep -> Objects.equals(dep.getGroup(), "org.ow2.asm"));
});
});
}
}

View File

@@ -0,0 +1,5 @@
import org.gradle.api.provider.MapProperty;
public abstract class RunConfigCommon {
public abstract MapProperty<String, String> getSystemProperties();
}