Search Gradle plugins

io.github.5hmlA.knife

Simplify the use of complex agp api and isolate the differences between different agp versions

https://github.com/5hmlA/conventions

Sources: https://github.com/5hmlA/conventions

Version 2.1.15

Created 26 October 2024.

Simplify the use of complex agp api and isolate the differences between different agp versions

Add this plugin to your build using the plugins DSL:

plugins {
  id("io.github.5hmlA.knife") version "2.1.15"
}

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