rising3 / semver-gradle-plugin

Gradle plugin for Updates the project version.A plugin that can updating the semantic versions like `yarn version` command.
Apache License 2.0
15 stars 7 forks source link

Throws IllegalArgumentException when semver task is executed #19

Closed rising3 closed 3 years ago

rising3 commented 3 years ago

Describe the bug IllegalArgumentException is thrown when running semver task in a configuration where Jar task is disabled. The problem is that the semverLatest task is not running before the semver task.

To Reproduce Steps to reproduce the behavior:

  1. build.gradle:
    plugins {
        id "com.github.rising3.semver" version "0.7.0"
    }
  2. Execute gradle semver
  3. See error

    $ gradle semver
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':semver'.
    > Illegal Argument: unspecified
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    
    BUILD FAILED in 6s
    1 actionable task: 1 executed

Expected behavior You should always run the semverLatest task before the semver task.

Desktop (please complete the following information):