Search Gradle plugins

com.palantir.java-format-spotless

If spotless is applied, configures a java step that formats using palantir-java-format.

https://github.com/palantir/palantir-java-format/

Sources: https://github.com/palantir/palantir-java-format/

Version 2.50.0 (latest)

Created 14 August 2024.

If spotless is applied, configures a java step that formats using palantir-java-format.

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.palantir.java-format-spotless") version "2.50.0"
}

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("com.palantir.java-format-spotless:com.palantir.java-format-spotless.gradle.plugin:2.50.0")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("com.palantir.java-format-spotless")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("com.palantir.java-format-spotless:com.palantir.java-format-spotless.gradle.plugin:2.50.0")
      }
    }
    
    apply(plugin = "com.palantir.java-format-spotless")
  • Applying plugins to all subprojects .