Search Gradle plugins

Version 1.0.0-beta.2 (latest)

Created 11 November 2022.

Gradle convention plugins for Java projects. Configures Checkstyle, Dependency check, Eclipse, Jacoco, Java, Sonarlint, Spotbugs, Spotless plugins. Defines for 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.

Using the plugins DSL:

plugins {
  id "se.solrike.conventions.java-conventions" version "1.0.0-beta.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "se.solrike.conventions:solrike-conventions-gradle-plugin:1.0.0-beta.2"
  }
}

apply plugin: "se.solrike.conventions.java-conventions"

Using the plugins DSL:

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

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("se.solrike.conventions:solrike-conventions-gradle-plugin:1.0.0-beta.2")
  }
}

apply(plugin = "se.solrike.conventions.java-conventions")

Learn how to apply plugins to subprojects