Search Gradle plugins

Version 1.0.0-beta.7 (latest)

1.0.0-beta.7

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.

Using the plugins DSL:

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

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.7")
  }
}

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

Using the plugins DSL:

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

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.7"
  }
}

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

Learn how to apply plugins to subprojects