gradle-versions-plugin
Gradle buildSrcVersions
Our great sponsors
gradle-versions-plugin | Gradle buildSrcVersions | |
---|---|---|
17 | 8 | |
3,792 | 1,621 | |
- | 0.5% | |
7.1 | 8.8 | |
15 days ago | 3 months ago | |
Kotlin | Kotlin | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gradle-versions-plugin
- Is there anything similar to Yarn or NPM but for Gradle?
-
Gradle plugin for updating dependencies?
This can tell you about new versions https://github.com/ben-manes/gradle-versions-plugin
-
Anyone else get annoyed when certain versions of androidx artifacts require compiling against Preview or Beta Android SDKs?
In one of my larger projects I use https://github.com/ben-manes/gradle-versions-plugin to update dependencies every couple of weeks. I manually go through each available update, and now I have to check every androidx update to see if it's one of these special versions. On top of that, if it is, I have to go manually check if there was an update to the version that I'm on but beneath the special version.
-
gradle-versions-plugin VS gradle-analytics-plugin - a user suggested alternative
2 projects | 28 Feb 2023
- Cursos que formaram meu caráter: Desenvolvimento web com Quarkus - Gerenciador de versões de bibliotecas com Versions
- What is your favorite library/plugin?
-
GitHub can now alert of supply-chain bugs in new dependencies
In the meantime you can use the gradle-versions-plugin or one of its extensions. I wrote it a decade ago and naively hoped they would have offered something built-in and better by now. Maybe they finally will if the above moved forward.
-
Converting old java project into Kotlin
https://github.com/ben-manes/gradle-versions-plugin is my go to plugin for updating and maintaining plugin versions (also allows you to update to stable only versions of dependencies once you setup some custom gradle methods.(note jitpack has bad meta data so you'll have to exclude this lib from that repo)
-
How often do you update dependencies?
I like https://github.com/ben-manes/gradle-versions-plugin but there are others out there that are more up to date and provide more features. I only used it for dependency report generation. I'm going to play around with this and others more in the near future and see what one(s) I like.
-
Upgrading to Gradles modern plugin configuration
Creating your own pre compiled script plugins for tidying up your build.gradle config and give an example showcasing config for the popular the popular versions gradle plugin
Gradle buildSrcVersions
-
Dependency Managers Don't Manage Your Dependencies (2021)
Lately I've been using gradle with kotlin-js and a mix of npm and jvm dependencies. There's the https://splitties.github.io/refreshVersions/ plugin that I can recommend if you are using gradle (with or without kotlin-js).
It manages plugin dependencies, library dependencies, and version dependencies. It can use the new gradle version catalog or not if you prefer. On first use, you migrate your versions and it extracts these to a versions.properties (or your version catalog). Then whenever you run refreshVersions it indicates available new versions in comments in this file. It also indicates unused dependencies. Though for npms this is a bit harder. All you need to do is manually use the versions you want.
I run this frequently to stay on top of upstream changes. Few software engineers realize that the testing and integration overhead with version changes multiplies (just like with other forms of change). Libraries that you haven't updated amount to technical debt that you haven't addressed. So, the workload increases massively if you don't update for a while. Staying up to date minimizes the workload. This plugin makes that super easy.
Given that we are using kotlin-js, we have to deal with a rapidly evolving library ecosystem so we do have occasional issues that we need to work around by either downgrading or fixing some code. Whenever I can't update something, I document it in my versions.properties with a comment. Often you just have to wait for the next release or so for things to straighten out. The price of using cutting edge software.
Kotlin-js manages a yarn lock file as well. So it properly locks dependencies. Whenever you update npm dependencies, you have to run a command to upgrade the lock file. There's also a whole mess of webpack dependencies that comes along with kotlin-js.
-
Weeks of Debugging Your Build can Save Hours of Learning Gradle
{$% embed https://github.com/splitties/refreshVersions %}
-
Gradle plugin for updating dependencies?
I need a Gradle plugin for managing version upgrades for dependencies. I used refreshVersions; however, I don't like how those dependencies end up in multiple files, e.g., versions.properties vs lib.versions.toml. I want something simpler. So, what do you prefer?
-
Easy way to migrate to Gradle's version catalog
As somebody with a deep personal hatred of TOML I recommend refreshVersions https://github.com/jmfayard/refreshVersions just a million times better and will support version catalogs soon maybe
-
How to keep all the common dependencies between multiple modules in single project gradle file?
refreshVersions, it is literally the best
- What is the best way to manage and organize build gradle dependencies?
-
How to build a GraphQL Gateway with Spring Boot and Kotlin
Note that I'm using gradle refreshVersions to make it easy to keep the project up-to-date. Therefore, the versions are not defined in the build.gradle files, they are centralized in the versions.properties file. RefreshVersions is bootstrapped like this in settings.gradle.kts:
-
Unit test your knowledge 💡
Also the official sample for gradle refreshVersions
What are some alternatives?
dependabot-core - 🤖 Dependabot's core logic for creating update PR's.
logback-android - 📄The reliable, generic, fast and flexible logging framework for Android
Gradle - Adaptable, fast automation for all
WheelView-Android
Dagger2 - A fast dependency injector for Android and Java.
Guava - Google core libraries for Java
Polyglot for Maven - Support alternative markup for Apache Maven POM files
sixpack-java - A Java client for the Sixpack A/B testing framework https://github.com/seatgeek/sixpack
gradle-analytics-plugin - A free Gradle plugin to analyze your project builds. It provides unique visual and text metrics in HTML format.
deep-clean - When Gradle or the IDE let you down, just --nuke all them caches
bazel-remote - A remote cache for Bazel
AboutLibraries - AboutLibraries automatically collects all dependencies and licenses of any gradle project (Kotlin MultiPlatform), and provides easy to integrate UI components for Android and Compose-jb environments