Skip to content

Instantly share code, notes, and snippets.

@LizzieStudeneer
Created September 9, 2019 08:36
Show Gist options
  • Save LizzieStudeneer/6f8789cb4d374f1d98481e018aa971c4 to your computer and use it in GitHub Desktop.
Save LizzieStudeneer/6f8789cb4d374f1d98481e018aa971c4 to your computer and use it in GitHub Desktop.
// BluesquarePlugin.kt
open class BluesquarePlugin : Plugin<Project> {
override fun apply(project: Project) {
project.configurePlugins()
project.configureAndroid()
project.configureDependencies()
}
}
//Plugins.kt
internal fun Project.configurePlugins() {
plugins.apply("com.android.library")
plugins.apply("org.gradle.maven-publish") // or anything else, that you would like to load
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment