Issue #5 resolved

ConcurrentModificationException in multi-module project

Meikel Brandmeyer
created an issue

Moved from the old repository on behalf of Dave Ray.

ClojurePlugin.configureUberjar modifies project.tasks while it's iterating resulting in ConcurrentModificationException. My Groovy and Gradle knowledge is pretty limited, but that's my best guess. Here's the exception I'm getting:

  Caused by: java.util.ConcurrentModificationException
    at org.gradle.api.internal.DefaultDomainObjectCollection$IteratorImpl.next(DefaultDomainObjectCollection.java:280)
    at org.gradle.api.internal.collections.FilteredCollection$FilteringIterator.findNext(FilteredCollection.java:100)
    at org.gradle.api.internal.collections.FilteredCollection$FilteringIterator.next(FilteredCollection.java:117)
    at org.gradle.api.internal.DefaultDomainObjectCollection$IteratorImpl.next(DefaultDomainObjectCollection.java:280)
    at clojuresque.ClojurePlugin.configureUberjar(ClojurePlugin.groovy:40)
    at clojuresque.ClojurePlugin.this$2$configureUberjar(ClojurePlugin.groovy)
    at clojuresque.ClojurePlugin$this$2$configureUberjar.callCurrent(Unknown Source)
    at clojuresque.ClojurePlugin.apply(ClojurePlugin.groovy:35)
    at clojuresque.ClojurePlugin.apply(ClojurePlugin.groovy)
    at org.gradle.api.internal.plugins.DefaultProjectsPluginContainer.providePlugin(DefaultProjectsPluginContain

Comments (1)

  1. Log in to comment