GradleGitDependenciesPlugin icon indicating copy to clipboard operation
GradleGitDependenciesPlugin copied to clipboard

Branch name can't be resolved (plugin versions 2.0.3 and 2.0.4)

Open bonivi opened this issue 4 years ago • 2 comments

Steps to reproduce

  • create settings.gradle
plugins { id 'com.alexvasilkov.git-dependencies' version '2.0.3' } // 2.0.4 also does not work

git {
    fetch 'https://github.com/alexvasilkov/GradleGitDependenciesPlugin.git' , {
        dir "$rootDir/testing"
        commit 'master'
    }
}

rootProject.name = 'testing'
  • run ./gradlew

result

$ ./gradlew 
Git dependency: Added 'GradleGitDependenciesPlugin'
Git dependency: Clone started 'https://github.com/alexvasilkov/GradleGitDependenciesPlugin.git' at version 'master'

FAILURE: Build failed with an exception.

* Where:
Settings file '/home/XXX/testing/settings.gradle' line: 4

* What went wrong:
A problem occurred evaluating settings 'testing'.
> Ref master cannot be resolved

bonivi avatar Oct 17 '21 17:10 bonivi

Any progress ?

bonivi avatar Nov 30 '21 15:11 bonivi

Please check issue #24 as it looks like a duplicate. In short, try to use origin/master instead of just master. I'll update the docs meanwhile.

alexvasilkov avatar Nov 30 '21 18:11 alexvasilkov