Search Gradle plugins

io.github.alexeytereshchenko.guardian

This Gradle plugin is an aggregator that configures Error Prone and CheckStyle, aiming to reduce boilerplate code and ensure consistent quality across projects. It automatically applies Git hooks to run tests and builds before each push, enhancing code reliability and development workflow.

https://github.com/alexeytereshchenko/CodeGuardian

Sources: https://github.com/alexeytereshchenko/CodeGuardian

Version 1.2.5 (latest)

Created 09 February 2024.

This Gradle plugin is an aggregator that configures Error Prone and CheckStyle, aiming to reduce boilerplate code and ensure consistent quality across projects. It automatically applies Git hooks to run tests and builds before each push, enhancing code reliability and development workflow.

Add this plugin to your build using the plugins DSL:

plugins {
  id("io.github.alexeytereshchenko.guardian") version "1.2.5"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("io.github.alexeytereshchenko.guardian:io.github.alexeytereshchenko.guardian.gradle.plugin:1.2.5")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("io.github.alexeytereshchenko.guardian")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("io.github.alexeytereshchenko.guardian:io.github.alexeytereshchenko.guardian.gradle.plugin:1.2.5")
      }
    }
    
    apply(plugin = "io.github.alexeytereshchenko.guardian")
  • Applying plugins to all subprojects .