researchgate / gradle-release

gradle-release is a plugin for providing a Maven-like release process for projects using Gradle
MIT License
868 stars 220 forks source link

Version 3.0.0 - SCM adapter #358

Open cyberveseli opened 2 years ago

cyberveseli commented 2 years ago

Hello,

I am new in Gradle and i have very basic build file:

plugins {
    // Apply the java-library plugin for API and implementation separation.
    id 'java-library'
    id 'net.researchgate.release' version '3.0.0'
}

repositories {
    // Use Maven Central for resolving dependencies.
    mavenCentral()
}

dependencies {
    // Use JUnit Jupiter for testing.
    testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'

    // This dependency is exported to consumers, that is to say found on their compile classpath.
    api 'org.apache.commons:commons-math3:3.6.1'

    // This dependency is used internally, and not exposed to consumers on their own compile classpath.
    implementation 'com.google.guava:guava:30.1.1-jre'
}

tasks.named('test') {
    // Use JUnit Platform for unit tests.
    useJUnitPlatform()
}

Once i ran gradle release i am getting this error:

> Task :kafka-commons-release:kafka-commons:initScmAdapter FAILED

> Task :kafka-commons:release FAILED
Release process failed, reverting back any changes made by Release Plugin.
Release process failed, reverting back any changes made by Release Plugin.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':kafka-commons-release:kafka-commons:initScmAdapter'.
> Cannot invoke method init() on null object

Any idea what i am doing wrong? Thanks a lot!

uberbinge commented 2 years ago

Facing same issue with version 3.0.1. Is this fix related to it? cc @Hillkorn