Closed jmfayard closed 5 years ago
Plugin documentation: https://github.com/LouisCAD/Splitties/tree/plugin/plugin
Run ./gradlew :plugin:publishToMavenLocal
./gradlew :plugin:publishToMavenLocal
Run $ ./gradlew migrateToAndroidX in the project that needs to be migrated
$ ./gradlew migrateToAndroidX
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.
:plugin:publishPlugins
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
resources
Plugin documentation: https://github.com/LouisCAD/Splitties/tree/plugin/plugin
Run
./gradlew :plugin:publishToMavenLocal
Run
$ ./gradlew migrateToAndroidX
in the project that needs to be migratedRunning
: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:
_
-- but that makes the Android Sync fails, so no+
-- that works and only needs to be explainedI 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 theresources
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