Search Gradle plugins

net.kyori.indra.licenser.spotless

Owner: kashike

Helper for configuring license header generation in Spotless with template parameters and differing formats

https://github.com/KyoriPowered/indra/wiki

Sources: https://github.com/KyoriPowered/indra

Version 3.1.3 (latest)

Created 28 August 2023.

Helper for configuring license header generation in Spotless with template parameters and differing formats

Add this plugin to your build using the plugins DSL:

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