LouisCAD / Splitties

A collection of hand-crafted extensions for your Kotlin projects.
https://splitties.louiscad.com
Apache License 2.0
2.53k stars 159 forks source link

plugin: introduce plugins.gradle.kts #224

Closed jmfayard closed 5 years ago

jmfayard commented 5 years ago

Given that by default, the Android Gradle Plugin is a pain in the ass to configure, when the plugin is first added, IF the user uses the Kotlin DSL, it will copy a file "plugins.gradle.kts" that does all the boilerplate.

The user only has to edit this part:

// settings.gradle.kts
pluginManagement {
   repositories {
       google()
       gradlePluginPortal()
   }
}
apply(from = "plugins.gradle.kts")
// rootProject.name = xxx
// include(":app")

See sample-android in my project

https://github.com/jmfayard/buildSrcVersions/tree/refreshVersions/sample-android

jmfayard commented 5 years ago

@LouisCAD cancelling this PR, it's better to put this logic in my plugin