Skip to content

Instantly share code, notes, and snippets.

@quickbirdstudios-eng
Created September 6, 2019 07:18
Show Gist options
  • Save quickbirdstudios-eng/a27197d22b6c9dad350fb9ac16167f78 to your computer and use it in GitHub Desktop.
Save quickbirdstudios-eng/a27197d22b6c9dad350fb9ac16167f78 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