Search Gradle plugins

Version 0.1-SNAPSHOT

0.1-SNAPSHOT

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

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

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

Using the plugins DSL:

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

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

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

Learn how to apply plugins to subprojects