Search Gradle plugins

Version 1.5 (latest)

Created 28 February 2016.

Format Java source code and sort imports using Eclipse formatter

Using the plugins DSL:

plugins {
  id "com.github.youribonnaffe.gradle.format" version "1.5"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.github.youribonnaffe.gradle.format:gradle-format-plugin:1.5"
  }
}

apply plugin: "com.github.youribonnaffe.gradle.format"

Using the plugins DSL:

plugins {
  id("com.github.youribonnaffe.gradle.format") version "1.5"
}

Using legacy plugin application:

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

apply(plugin = "com.github.youribonnaffe.gradle.format")

Learn how to apply plugins to subprojects