Search Gradle plugins

io.github.tmzk1005.java-formatter

Owner: Kang Zou

This plugin provides a mechanism to automatically (re)format your Gradle project during a Gradle build, or to verify its formatting, so that your project can converge on consistent code style regardless of user preferences, IDE settings, etc.

https://github.com/tmzk1005/formatter

Sources: https://github.com/tmzk1005/formatter

Version 1.0.1 (latest)

1.0.1

Created 20 September 2023.

This plugin provides a mechanism to automatically (re)format your Gradle project during a Gradle build, or to verify its formatting, so that your project can converge on consistent code style regardless of user preferences, IDE settings, etc.

Using the plugins DSL:

plugins {
  id("io.github.tmzk1005.java-formatter") version "1.0.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("io.github.tmzk1005:formatter:1.0.1")
  }
}

apply(plugin = "io.github.tmzk1005.java-formatter")

Using the plugins DSL:

plugins {
  id "io.github.tmzk1005.java-formatter" version "1.0.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.github.tmzk1005:formatter:1.0.1"
  }
}

apply plugin: "io.github.tmzk1005.java-formatter"

Learn how to apply plugins to subprojects