More work on runs
This commit is contained in:
14
buildSrc/src/main/java/RemoveAsmDependency.java
Normal file
14
buildSrc/src/main/java/RemoveAsmDependency.java
Normal 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"));
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
5
buildSrc/src/main/java/RunConfigCommon.java
Normal file
5
buildSrc/src/main/java/RunConfigCommon.java
Normal file
@@ -0,0 +1,5 @@
|
||||
import org.gradle.api.provider.MapProperty;
|
||||
|
||||
public abstract class RunConfigCommon {
|
||||
public abstract MapProperty<String, String> getSystemProperties();
|
||||
}
|
||||
Reference in New Issue
Block a user