Search Gradle plugins

io.github.appspiriment.library-base

The Android Base Library Plugin is a foundational plugin designed to standardize the configuration of all your Android library modules. It automates the setup of core settings, ensuring consistency across your project. This plugin handles essential tasks such as applying the Android and Kotlin plugins, setting the compile and minimum SDK versions, configuring build types (debug/release), defining Java and Kotlin compilation options, and setting up default source sets and resource configurations. By using this plugin, you can significantly reduce boilerplate code and maintain a uniform structure across all your library modules.

https://github.com/appspiriment/AndroidConventionPlugins

Sources: https://github.com/appspiriment/AndroidConventionPlugins

Version 0.0.3 (latest)

Created 25 February 2025.

The Android Base Library Plugin is a foundational plugin designed to standardize the configuration of all your Android library modules. It automates the setup of core settings, ensuring consistency across your project. This plugin handles essential tasks such as applying the Android and Kotlin plugins, setting the compile and minimum SDK versions, configuring build types (debug/release), defining Java and Kotlin compilation options, and setting up default source sets and resource configurations. By using this plugin, you can significantly reduce boilerplate code and maintain a uniform structure across all your library modules.

Add this plugin to your build using the plugins DSL:

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