
dev.lajoscseppento.ruthless.plugin.impl.RuthlessGradlePlugin 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.impl;
import lombok.NonNull;
import org.gradle.api.Plugin;
import org.gradle.api.artifacts.dsl.RepositoryHandler;
import org.gradle.api.invocation.Gradle;
public class RuthlessGradlePlugin implements Plugin {
@Override
public void apply(@NonNull Gradle gradle) {
gradle.settingsEvaluated(
settings -> settings.getPluginManager().apply(RuthlessSettingsPlugin.class));
// For spotless
gradle.allprojects(
project -> {
RepositoryHandler repositories = project.getBuildscript().getRepositories();
repositories.add(repositories.mavenCentral());
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy