Trouble signing archives with gradle 2.1

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?

Where you have:

signing {
      configurations.archives
  }

It should be:

signing {
      sign configurations.archives
  }

Oh, I see. Silly mistake. Sorry to bother everyone, I should have been able to spot that myself.

No problems. We’ve all been there.