##// END OF EJS Templates
Implemented compose
Implemented compose

File last commit:

r12:c7d470187afa v1.2.0 default
r12:c7d470187afa v1.2.0 default
Show More
Configurations.java
24 lines | 701 B | text/x-java-source | JavaLexer
package org.implab.gradle.containers;
import org.gradle.api.Action;
import org.gradle.api.artifacts.Configuration;
public final class Configurations {
public static final Action<Configuration> RESOLVABLE = Configurations::resolvable;
public static final Action<Configuration> CONSUMABLE = Configurations::consumable;
private Configurations() {
}
private static void resolvable(Configuration configuration) {
configuration.setCanBeResolved(true);
configuration.setCanBeConsumed(false);
}
private static void consumable(Configuration configuration) {
configuration.setCanBeResolved(false);
configuration.setCanBeConsumed(true);
}
}