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)

Created 04 January 2017.

No version description available.

Add this plugin to your build using the plugins DSL:

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

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("org.ajoberstar.organize-imports:org.ajoberstar.organize-imports.gradle.plugin:1.0.3")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("org.ajoberstar.organize-imports")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("org.ajoberstar.organize-imports:org.ajoberstar.organize-imports.gradle.plugin:1.0.3")
      }
    }
    
    apply(plugin = "org.ajoberstar.organize-imports")
  • Applying plugins to all subprojects .