Skip to content

build exception - Cannot invoke method split() on null objectΒ #120

@josephh

Description

@josephh

Running,

------------------------------------------------------------
Gradle 7.4.2
------------------------------------------------------------

Build time:   2022-03-31 15:25:29 UTC
Revision:     540473b8118064efcc264694cbcaa4b677f61041

Kotlin:       1.5.31
Groovy:       3.0.9
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          18.0.1.1 (Homebrew 18.0.1.1+0)
OS:           Mac OS X 12.5 aarch64

in settings.gradle I have,

...
buildscript {
    repositories {
        ...
    }

    dependencies {
        classpath 'io.alcide:gradle-semantic-build-versioning:4.2.2'
    }
}

apply plugin: "io.alcide.gradle-semantic-build-versioning"
...

and in my code repo i have a tag,

git tag
0.1.0

but when i run

./gradlew build

I get a build failure,

./gradlew  build --stacktrace  

FAILURE: Build failed with an exception.

* What went wrong:
Cannot invoke method split() on null object

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Exception is:
java.lang.NullPointerException: Cannot invoke method split() on null object
        at net.vivin.gradle.versioning.VersionUtils.incrementVersion(VersionUtils.groovy:227)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions