Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevcodez/gradle-upgrade-interactive
CLI to interactively upgrade gradle dependencies, inspired by yarn.
https://github.com/kevcodez/gradle-upgrade-interactive
build cli dependency dependency-management gradle interactive jest nodejs npm upgrade version-checker
Last synced: 4 months ago
JSON representation
CLI to interactively upgrade gradle dependencies, inspired by yarn.
- Host: GitHub
- URL: https://github.com/kevcodez/gradle-upgrade-interactive
- Owner: kevcodez
- License: mit
- Created: 2019-08-18T22:57:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-11-23T22:26:23.000Z (about 1 year ago)
- Last Synced: 2024-09-27T01:52:53.778Z (4 months ago)
- Topics: build, cli, dependency, dependency-management, gradle, interactive, jest, nodejs, npm, upgrade, version-checker
- Language: JavaScript
- Homepage:
- Size: 859 KB
- Stars: 56
- Watchers: 3
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gradle Upgrade Interactive
[![Build Status](https://travis-ci.org/kevcodez/gradle-upgrade-interactive.svg?branch=master)](https://travis-ci.org/kevcodez/gradle-upgrade-interactive)
[![NPM](https://img.shields.io/npm/v/gradle-upgrade-interactive)](https://www.npmjs.com/package/gradle-upgrade-interactive)CLI to interactively upgrade Gradle dependencies, inspired by yarn.
![](https://raw.githubusercontent.com/kevcodez/gradle-upgrade-interactive/master/cli.gif)
Easily upgrade your dependencies and Gradle itself by simply selecting what you want to upgrade.
## Requirements
- NodeJS 18+
- [gradle-versions-plugin](https://github.com/ben-manes/gradle-versions-plugin)## Installation
To get the data for the outdated dependencies, the [gradle-versions-plugin](https://github.com/ben-manes/gradle-versions-plugin) is required.
build.gradle
```groovy
plugins {
id "com.github.ben-manes.versions" version "0.49.0"
}
```Install the CLI
```sh
npm i -g gradle-upgrade-interactive
```## Usage
Simply run `gradle-upgrade-interactive`.
```
Options:
--help Show help [boolean]
--version Show version number [boolean]
--resolution, -r Controls the dependency resolution strategy.
Supported options:
* release: selects the latest release
* milestone: select the latest version being either a
milestone or a release (default)
* integration: selects the latest revision of the
dependency module (such as SNAPSHOT) [string]
--semver, -s Which semantic version diffs to include
(https://semver.org). Flag can be used multiple times.
Supported options:
* major: Include upgrades with a major version change
* minor: Include upgrades with a minor version change
* patch: Include upgrades with a patch version change
[array]
--external-file, -e Points to a file where dependencies have been declared,
e.g. gradle/dependencies.gradle. Option can be used
multiple times. [array]
--debug, -d Prints debugging information, such as commands executed
and current status. [boolean] [Standard: false]
--path-to-report, -p Points to the path where the report.json is saved
standard is at the moment build/dependencyUpdates
--no-color Disables color output
```## How it works
The [gradle-versions-plugin](https://github.com/ben-manes/gradle-versions-plugin) is called to generate a JSON report containing the outdated dependencies.
The CLI will then prompt all outdated dependencies and the selected dependency upgrades will be written to the Gradle build file.