Search Gradle plugins

Version 0.8

0.8

Created 29 November 2018.

Format your Java source files with google-java-format

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects