# gradle-upgrade-interactive

> Interactive CLI to upgrade Gradle dependencies and Gradle wrapper.

Latest version **0.8.4** (published 2023-11-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install gradle-upgrade-interactive
pnpm add gradle-upgrade-interactive
yarn add gradle-upgrade-interactive
bun add gradle-upgrade-interactive
```

Provides the command `gradle-upgrade-interactive`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.8.4 |
| Published | 2023-11-23 |
| First published | 2019-08-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=18.0.0 |
| Dependencies | 5 |
| Unpacked size | 473.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | kevcodez |
| Keywords | gradle, upgrade, dependencies, dependency management, interactive |

## Links

- npm: https://www.npmjs.com/package/gradle-upgrade-interactive
- Homepage: https://github.com/kevcodez/gradle-upgrade-interactive
- npm.io page: https://npm.io/package/gradle-upgrade-interactive

## Dependencies (5)

- [ora](https://npm.io/package/ora.md) ^7.0.1
- [yargs](https://npm.io/package/yargs.md) ^17.7.2
- [colors](https://npm.io/package/colors.md) ^1.4.0
- [semver](https://npm.io/package/semver.md) ^7.5.4
- [prompts](https://npm.io/package/prompts.md) ^2.4.0

## Recent versions

- 0.8.4 (latest) — 2023-11-23
- 0.8.3 — 2023-11-21
- 0.8.2 — 2023-11-21
- 0.8.1 — 2023-11-21
- 0.8.0 — 2023-10-27
- 0.7.4 — 2020-11-24
- 0.7.3 — 2020-10-10
- 0.7.2 — 2020-09-26
- 0.7.1 — 2020-09-06
- 0.7.0 — 2020-03-25
- 0.6.6 — 2020-03-25
- 0.6.5 — 2020-03-23
- 0.6.4 — 2020-03-23
- 0.6.3 — 2020-03-23
- 0.6.2 — 2020-03-23
- … 24 more at https://npm.io/package/gradle-upgrade-interactive/versions

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

---
_Source: https://npm.io/package/gradle-upgrade-interactive · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
