JSPM

@auto-it/gradle

9.21.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q72201F
  • License MIT

A plugin that calls gradle-release-plugin with versioning information.

Package Exports

  • @auto-it/gradle

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@auto-it/gradle) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Gradle Plugin

Release a Java project using gradle.

  • supports both -snapshot and -snapshot-less versioning

Installation

This plugin is not included with the auto CLI installed via NPM. To install:

npm i --save-dev @auto-it/gradle
# or
yarn add -D @auto-it/gradle

Usage

{
  "plugins": [
    [
      "gradle",
      {
        // An optional gradle binary cmd/path relative to your project
        // @default /usr/bin/gradle
        "gradleCommand": "./gradlew",

        // An optional gradle argument list -- IE any gradle option allowed for the version
        // of gradle you're using
        // @default []
        "gradleOptions": ["-P someProp=someVal"]
      }
    ]
    // other plugins
  ]
}

Gradle Project Configuration

This plugin uses the (gradle release plugin)[https://github.com/researchgate/gradle-release] to update the version. Make sure the the latest gradle-release-plugin is in your build.gradle.

plugins {
  id 'net.researchgate.release' version '2.6.0' // gradle release plugin
}

Publish

This plugin will also call the publish task with the release version, if configured in your project.

Configure snapshotSuffix

This plugin will use the snapshotSuffix in gradle.properties or build.gradle if configured.

Build After Version Bump Automatically

This plugin will run a release build to create release artifacts.