Search Gradle plugins

Version 0.1

Created 03 November 2015.

Format your Java source files with google-java-format

Using the plugins DSL:

plugins {
  id "com.github.sherter.google-java-format" version "0.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.github.sherter.googlejavaformat:google-java-format:0.1"
  }
}

apply plugin: "com.github.sherter.google-java-format"

Using the plugins DSL:

plugins {
  id("com.github.sherter.google-java-format") version "0.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.github.sherter.googlejavaformat:google-java-format:0.1")
  }
}

apply(plugin = "com.github.sherter.google-java-format")

Learn how to apply plugins to subprojects