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 #219

Closed jmfayard closed 5 years ago

jmfayard commented 5 years ago

Plugin documentation: https://github.com/LouisCAD/Splitties/tree/plugin/plugin

Run ./gradlew :plugin:publishToMavenLocal

Run $ ./gradlew migrateToAndroidX in the project that needs to be migrated

Running :plugin:publishPlugins will publish a version to https://plugins.gradle.org/plugin/com.louiscad.splitties This in turns will allow us to test it more easily in other projects.

What about the version? I considered three alternatives:

I kept the version for Splitties, which is a special case, and for AndroidX (just for now)

Caveat: Android Studio does not seem to support auto-completion for build.gradle


The path to the CSV file is hardcoded. It should be possible to use the CSV from the resources folder but I couldn't find the right syntax for this. https://github.com/LouisCAD/Splitties/blob/plugin/plugin/src/main/kotlin/com/louiscad/splitties/MigrateAndroidxTask.kt#L14-L16