-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execution failed for task ':createScmAdapter'. #173
Comments
Thanks for the detailed description. I will check this soon |
Any news about this issue? |
Hi, like the output is telling you
You have to commit and push all your stuff in order to create a release. If you want to create one with unversioned files, tell it to the plugin by configuration. Look at the following example where i reproduced your setup. |
I also faced same issue, followed below workaround answered on StackOverflow. git update-index --chmod=+x gradlew execute above commends in your application. |
I was trying to see how gradle-release plugin works, but got bored after 4 errors..
How to reproduce:
`/*
*
*/
plugins {
id 'net.researchgate.release' version '2.4.0'
}
// Apply the java plugin to add support for Java
apply plugin: 'java'
task wrapper(type: Wrapper) {
gradleVersion = '2.13'
}
// In this section you declare where to find the dependencies of your project
repositories {
// Use 'jcenter' for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
}
// In this section you declare the dependencies for your production and test code
dependencies {
// The production code uses the SLF4J logging API at compile time
compile 'org.slf4j:slf4j-api:1.7.7'
}
`
4. Add "plugins" section
5. run gradlew release
6. see error:
`gradlew release
:release
:gradle-release:createScmAdapter
:gradle-release:initScmAdapter FAILED
:release FAILED
Release process failed, please remember to revert any uncommitted changes made by the Release Plugin.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':initScmAdapter'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 5.741 secs`
9. run "git add build.gradle"
10. git commit -m"aaa"
?? .gradle/
?? build/
?? gradle/
?? gradlew
?? gradlew.bat
?? settings.gradle
The text was updated successfully, but these errors were encountered: