Search Gradle plugins

Version 0.9 (latest)

0.9

Created 08 June 2020.

Format your Java source files with google-java-format

Using the plugins DSL:

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

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

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

Using the plugins DSL:

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

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

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

Learn how to apply plugins to subprojects