All Downloads are FREE. Search and download functionalities are using the official Maven repository.

name.remal.gradle_plugins.toolkit.build_logic.BuildLogicPlugin Maven / Gradle / Ivy

There is a newer version: 0.68.0
Show newest version
package name.remal.gradle_plugins.toolkit.build_logic;

import static name.remal.gradle_plugins.toolkit.ResourceUtils.getResourceUrl;

import org.gradle.api.Plugin;
import org.gradle.api.Project;

@SuppressWarnings({"checkstyle:LineLength", "checkstyle:RightCurlyAlone", "InjectedReferences"})
public class BuildLogicPlugin implements Plugin {
    public void apply(Project project) {
        project.apply(it -> {
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/helpers.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/properties.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/ci.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/common.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/dependencies.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/check-source-dirs.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/base-package.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/java.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/test-external-plugins.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/lombok.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/errorprone.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/classes-relocation.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/cross-compile.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/groovy.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/checkstyle.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/sonarlint.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/javadoc.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/jacoco.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/gradle-plugin.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/gradle-plugin-collect-api-dependencies.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/gradle-plugin-collect-classes-relying-on-internal-gradle-api.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/publish-gradle-plugin.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/publish-maven.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/publish-maven-bom.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/publish-maven-central.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/publish-maven-to-build-dir.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/signing.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/process-readme.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/ide.gradle", BuildLogicPlugin.class));
            it.from(getResourceUrl("/name/remal/gradle_plugins/toolkit/build_logic/github-submit-dependencies.gradle", BuildLogicPlugin.class));
        });
    
        project.allprojects(proj ->
            proj.getConfigurations()
                .getByName("projectDependencyConstraints")
                .getDependencies()
                .add(
                    proj.getDependencies().platform("name.remal.gradle-plugins.toolkit:toolkit-bom:0.65.13")
                )
        );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy