Roman Belousov
05/30/2023, 6:00 AMExecution failed for task ':XXX:podspec'
no one came across this?
The modules themselves are assembled in parallel by:
./gradlew podspec -Dorg.gradle.daemon=false.
Here's the logs:
Task failed with an exception.
11:33:51 ------------
11:33:51 * What went wrong:
11:33:51 Execution failed for task ':XXX:podspec'.
11:33:51
11:33:51 > Could not create task ':wrapper'.
11:33:51 > java.util.ConcurrentModificationException (no error message)
Is there anything I can do with that? Thanks in advance 🙂Jeff Lockhart
05/30/2023, 6:21 AMConcurrentModificationException
(I can't recall the details). When I've seen it, I just do a clean build and it works afterwards, so I haven't bothered looking into it more.Roman Belousov
05/30/2023, 6:25 AMa-dd
05/30/2023, 8:58 AMRoman Belousov
05/30/2023, 11:04 AMJeff Lockhart
05/30/2023, 3:05 PMJeff Lockhart
05/30/2023, 3:25 PMa-dd
05/30/2023, 4:07 PMJeff Lockhart
05/30/2023, 5:39 PMRoman Belousov
05/31/2023, 5:02 AM-Dorg.gradle.parallel=false
It's kind of fix the problem, but obviously it makes out build time bigger
Any ideas, is there something else i could do? 🙂a-dd
05/31/2023, 9:27 AMtasks.getByName("wrapper")
call to you root build.gradle.Roman Belousov
05/31/2023, 9:33 AMtasks.getByName("wrapper")
and how is it gonna help?a-dd
05/31/2023, 12:12 PMlogger.quiet(tasks.getByName("wrapper").name)
to feel more secure.a-dd
05/31/2023, 12:14 PMRoman Belousov
05/31/2023, 12:56 PMJeff Lockhart
09/16/2023, 11:52 PMtasks.getByName("wrapper")
workaround now with the 1.9.20-Beta and I'm getting `ConcurrentModificationException`s again. Here's the new stack trace.hfhbd
09/17/2023, 8:16 AMa-dd
09/18/2023, 1:32 PMa-dd
09/18/2023, 1:33 PMJeff Lockhart
09/18/2023, 3:40 PMorg.gradle.parallel=true
is likely necessary to reproduce. It seems likely something to do with the CocoaPods plugin, based on the podspec
task. I have 10 modules, all of which use CocoaPods to add an Objective-C dependency, but only two actually generate C interop. The other modules are linkOnly
. Beyond that, I'm not sure which combination of tasks and modules in my project create this scenario.
I will be open-sourcing my project soon though, and it's fairly easy to reproduce when doing a Gradle sync. Without the workaround in place, it happens 5-10% of the time. I plan to release my library when Kotlin 1.9.20 is released. I'll probably make the code public this week.hfhbd
09/18/2023, 5:29 PMJeff Lockhart
09/19/2023, 6:19 AM