I have trouble getting the the signing plugin to work in gradle 2.1 (I don’t know it this worked in previous versions).
I have created a java file in “src/main/java” and the following minimal build-file:
apply plugin: ‘java’
apply plugin: ‘signing’
signing {
configurations.archives
}
Now, if I read the documentation right, this should work:
gradle clean build signArchives
But I get the following error:
Task ‘signArchives’ not found in root project ‘current’.
Am I misunderstanding the documentation, or is there a bug in 2.1?