Search Gradle plugins

Version 1.0

Created 10 November 2016.

Configuration of static code analysis tools for Java projects

Using the plugins DSL:

plugins {
  id("com.marksandspencer.code-analysis") version "1.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.marksandspencer:mands-gradle-code-analysis:1.0")
  }
}

apply(plugin = "com.marksandspencer.code-analysis")

Using the plugins DSL:

plugins {
  id "com.marksandspencer.code-analysis" version "1.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.marksandspencer:mands-gradle-code-analysis:1.0"
  }
}

apply plugin: "com.marksandspencer.code-analysis"

Learn how to apply plugins to subprojects