Search Gradle plugins

Version 1.0.0-beta.7 (latest)

Created 10 January 2024.

Gradle convention plugins for Java projects. Configures Checkstyle, Dependency check, Eclipse, Jacoco, Java, Sonarlint, Spotbugs, Spotless plugins. Defines for instance Checkstyle rules, Spotbugs exclude filter, changes the default included and excluded Sonarlint rules and formatting rules for Spotless. Sets the output folder in Eclipse .classpath file.

Add this plugin to your build using the plugins DSL:

plugins {
  id("se.solrike.conventions.java-conventions") version "1.0.0-beta.7"
}

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("se.solrike.conventions.java-conventions:se.solrike.conventions.java-conventions.gradle.plugin:1.0.0-beta.7")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("se.solrike.conventions.java-conventions")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("se.solrike.conventions.java-conventions:se.solrike.conventions.java-conventions.gradle.plugin:1.0.0-beta.7")
      }
    }
    
    apply(plugin = "se.solrike.conventions.java-conventions")
  • Applying plugins to all subprojects .