[GRADLE-2940] [1.9-rc-2] tasks.remove failure Created: 30/Oct/13  Updated: 10/Nov/13  Resolved: 10/Nov/13

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 1.9-rc-3

Type: Bug
Reporter: Gradle Forums Assignee: René Gröschke (Inactive)
Resolution: Fixed Votes: 0


 Description   

When I run the tests in the "tasks" subproject of this github project [1]https://github.com/ReadyTalk/gradle-p... on 1.9-rc-2, I get this problem:

java.lang.RuntimeException: Tried to remove model tasks.sign but it is not registered
at org.gradle.model.internal.DefaultModelRegistry.remove(DefaultModelRegistry.java:96)
at org.gradle.model.internal.ModelRegistryBackedModelRules.remove(ModelRegistryBackedModelRules.java:61)
at org.gradle.api.internal.project.AbstractProject$2.execute(AbstractProject.java:232)
at org.gradle.api.internal.project.AbstractProject$2.execute(AbstractProject.java:230)
at org.gradle.listener.ActionBroadcast.execute(ActionBroadcast.java:39)
at org.gradle.api.internal.DefaultDomainObjectCollection.doRemove(DefaultDomainObjectCollection.java:210)
at org.gradle.api.internal.DefaultDomainObjectCollection.remove(DefaultDomainObjectCollection.java:205)
at com.readytalk.gradle.tasks.JarSignTest.cleanup(SignJarTest.groovy:46)

I do not get this error on 1.8... (right now the wrapper in the project is 1.8, but if you run the wrapper task, 1.9-rc-2 will be used).
----------------------------------------------------------------------------------------
[1] https://github.com/ReadyTalk/gradle-plugins



 Comments   
Comment by Gradle Forums [ 30/Oct/13 ]

Hi seth,
thanks for reporting this. There seems to be a regression when a task with the same name is added/removed multiple times as it happens in your unit test. I'm currently working on a fix and will ping you again once we have a gradle version with a fix available.

cheers,
René

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