loading...

My project is open to (Kotlin) contributors

jmfayard profile image Jean-Michel Fayard πŸ‡«πŸ‡·πŸ‡©πŸ‡ͺπŸ‡¬πŸ‡§πŸ‡ͺπŸ‡ΈπŸ‡¨πŸ‡΄ Updated on ・1 min read

Built with Gradle (6 Part Series)

1) How Kotlin makes editing your Gradle build less frustrating 2) Better dependency management in Android Studio 3.5 with Gradle buildSrcVersions 3 ... 4 3) Helping out with Gradle builds for hacktoberfest 4) Configuring Gradle with "gradle.properties" 5) My project is open to (Kotlin) contributors 6) "gradle migrateToAndroidX" - beta testers needed

Are you using https://gradle.org as your build tool?

Are you using https://kotlinlang.org, or another JVM language?

Good, read on.

My project is a Gradle plugin, id("de.fayard.buildSrcVersions")

GitHub logo jmfayard / refreshVersions

Life is too short to google for dependencies and versions

refreshVersions

End the dependency hell in minutes.

refreshVersions latest release on Gradle plugin portal dependencies plugin latest release on Gradle plugin portal Kotlinlang Slack Code Triage GitHub

What

The refreshVersions plugin targets all kinds of Gradle projects, including the following:

  • Kotlin Multiplatform

  • Android

  • Kotlin/JS, Kotlin/JVM, Kotlin/Native

  • Java

The refreshVersions Gradle plugin brings the following benefits:

  1. Centralizes dependencies versions (very useful in multi-module projects)

  2. Shows available updates in seconds

  3. Allows applying the available updates with minimal effort

Why (the problem this project solves)

Gradle multi-module projects are on the rise because of how it enforces code decoupling which is a good thing for maintenance and inevitable changes.

Unfortunately, that means the number of build files (build.gradle[.kts]) are multiplied which makes upgrading the dependencies versions where significantly more tedious as you now need to open, edit and check more files.

Also, some library vendors like Google are publishing artifacts with different versions (AndroidX, Google Play Services and Firebase, just to name a few). AndroidX for example has about 70…

Its goal is to make it as painless as possible to upgrade your project to the latest and greatest version of everything.

It does that by extracting all your dependencies, searching for available dependencies updates and generating Kotlin code, Groovy code or Gradle properties.

Here is a description of how this can help people with their own project

Wants to help? Good.

The easiest but maybe most useful way to help me is to try the plugin in your own project, read the README at https://github.com/jmfayard/buildSrcVersions and the rest of the documentation

If anything is unclear, or does not work as you expected it, or you have great idea, please open an issue

If you want to go one step further, have a look at tickets labelled "help wanted" and see if you can do something

Built with Gradle (6 Part Series)

1) How Kotlin makes editing your Gradle build less frustrating 2) Better dependency management in Android Studio 3.5 with Gradle buildSrcVersions 3 ... 4 3) Helping out with Gradle builds for hacktoberfest 4) Configuring Gradle with "gradle.properties" 5) My project is open to (Kotlin) contributors 6) "gradle migrateToAndroidX" - beta testers needed

Discussion

markdown guide