Search Gradle plugins

org.ajoberstar.organize-imports

A Gradle plugin for organizing imports in Java and Groovy source files.

https://github.com/ajoberstar/gradle-imports

Version 1.0.3 (latest)

1.0.3

Created 04 January 2017.

No version description available.

Using the plugins DSL:

plugins {
  id("org.ajoberstar.organize-imports") version "1.0.3"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.ajoberstar:gradle-imports:1.0.3")
  }
}

apply(plugin = "org.ajoberstar.organize-imports")

Using the plugins DSL:

plugins {
  id "org.ajoberstar.organize-imports" version "1.0.3"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.ajoberstar:gradle-imports:1.0.3"
  }
}

apply plugin: "org.ajoberstar.organize-imports"

Learn how to apply plugins to subprojects