
net.corda.plugins.apiscanner.ScannerExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-scanner Show documentation
Show all versions of api-scanner Show documentation
Generates a summary of the artifact's public API
The newest version!
package net.corda.plugins.apiscanner;
import org.gradle.api.model.ObjectFactory;
import org.gradle.api.provider.MapProperty;
import org.gradle.api.provider.Property;
import org.gradle.api.provider.SetProperty;
import javax.annotation.Nonnull;
import javax.inject.Inject;
import java.util.List;
@SuppressWarnings({"unused", "rawtypes", "WeakerAccess"})
public class ScannerExtension {
private boolean enabled = true;
private final Property verbose;
private final SetProperty excludeClasses;
private final MapProperty excludeMethods;
private final SetProperty excludePackages;
private final Property targetClassifier;
@Inject
public ScannerExtension(@Nonnull ObjectFactory objects, String defaultClassifier) {
verbose = objects.property(Boolean.class).convention(false);
excludeClasses = objects.setProperty(String.class);
excludePackages = objects.setProperty(String.class);
excludeMethods = objects.mapProperty(String.class, List.class);
targetClassifier = objects.property(String.class).convention(defaultClassifier);
}
public Property getVerbose() {
return verbose;
}
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public SetProperty getExcludeClasses() {
return excludeClasses;
}
public MapProperty getExcludeMethods() {
return excludeMethods;
}
public SetProperty getExcludePackages() {
return excludePackages;
}
public Property getTargetClassifier() {
return targetClassifier;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy