
dev.lajoscseppento.ruthless.plugin.configuration.impl.RuthlessConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ruthless-plugin Show documentation
Show all versions of ruthless-plugin Show documentation
Ruthless conventions for Gradle projects to keep them DRY
package dev.lajoscseppento.ruthless.plugin.configuration.impl;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
import java.util.List;
import lombok.Builder;
import lombok.Data;
import lombok.extern.jackson.Jacksonized;
/** Ruthless configuration root. */
@Builder
@Data
@Jacksonized
public final class RuthlessConfiguration {
public static final RuthlessConfiguration INSTANCE;
static {
// Configuration
try {
ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
INSTANCE =
mapper.readValue(
RuthlessConfiguration.class.getResource("/configuration.yml"),
RuthlessConfiguration.class);
} catch (Exception ex) {
throw new AssertionError("Failed to load configuration: " + ex.getMessage(), ex);
}
}
private final String minimumGradleVersion;
private final String jacocoVersion;
private final List defaultDependencies;
private final List platformDependencies;
private final List testDependencies;
private final List springTestDependencies;
private final List gradlePlugins;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy