You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@grails.apache.org by "jamesfredley (via GitHub)" <gi...@apache.org> on 2026/10/02 06:02:42 UTC
Re: [I] org.grails:grails-bootstrap:6.2.0 - Execution failed for task ':findMainClass' [grails-core]
jamesfredley commented on issue #13581:
URL: https://github.com/apache/grails-core/issues/13581#issuecomment-5946458438
Fixed on `8.0.x`.
`:findMainClass` failed with `NoSuchMethodError` for `DefaultGroovyMethods.findAll(Object[], Closure)`. `MainClassFinder` called `file.listFiles()?.findAll` under a Groovy version that no longer had that method.
Pull request #13472 replaced that call with `Arrays.stream(file.listFiles()).filter(MainClassFinder::isClassFile).forEach(stack::push)` in `278507db06` (2024-04-10, "fix(grailsbootstrap): update main-class finder"). On `8.0.x` at `d13aa332`, `grails-gradle/model/src/main/groovy/org/grails/io/support/MainClassFinder.groovy` still uses that stream and does not call `findAll`.
The commit is in `v6.2.1`, `v6.2.2`, and `v6.2.3`, in the 7.0.0 through 7.2.4 tags except `v7.0.16`, and in `v8.0.0-M1` through `v8.0.0-RC2`. Closing as fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org