[GRADLE-1878] milestone 5 broke PgpPlugin Created: 30/Oct/11  Updated: 04/Jan/13  Resolved: 30/Oct/11

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-5
Fix Version/s: None

Type: Bug
Reporter: Blaine Simpson Assignee: Unassigned
Resolution: Not A Bug Votes: 0

Attachments: File tst.gradle    

 Description   

My PgpPlugin setup works fine with 1.0-milestone-3.

Croaks with milestone 5 because project.getByName("string") is no longer available. I see nothing in the Gradle release notes or upgrade guides about any changes to a getByName method.

Little sampling from stack trace:

        at org.gradle.api.internal.project.DefaultProject_Decorated.invokeMethod(Unknown Source)
        at de.huxhorn.gradle.pgp.PgpPlugin.apply(PgpPlugin.groovy:63)
        at de.huxhorn.gradle.pgp.PgpPlugin.apply(PgpPlugin.groovy)
        at org.gradle.api.internal.plugins.DefaultProjectsPluginContainer.providePlugin(DefaultProjectsPluginContainer.java:107)

The attached Gradle test file works with milestone 3 and fails with milestone 5.



 Comments   
Comment by Adam Murdoch [ 30/Oct/11 ]

Project.getByName() was never a supported way to access tasks, and was removed in milestone-5. We forgot to mention this in the migration guide. This is fixed now: http://wiki.gradle.org/display/GRADLE/Gradle+1.0-milestone-5+Migration+Guide#Gradle1.0-milestone-5MigrationGuide-Projectmethods

This gives you some examples of supported ways to access tasks.

Comment by Joern Huxhorn [ 01/Nov/11 ]

I won't support the PGPPlugin anymore since Gradle includes similar functionality with the Signing plugin.

I just updated the Plugin page accordingly.

Generated at Wed Jun 30 12:06:47 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.