Hi Mathieu,
I've committed your work, thank you for the fix. For future cases, I recommend to issue a JIRA with the fix and place your attachment over there. Things get lost in the ML without proper tracking in a ticketing system. On Mon, Aug 13, 2018 at 7:25 PM Mathieu Lirzin <mathieu.lir...@nereide.fr> wrote: > > Hello again, > > Mathieu Lirzin <mathieu.lir...@nereide.fr> writes: > > >> In my environment (Linux, openjdk version "1.8.0_171") plugin install > >> process does not work any more since this commit (june, 20) > >> > >> def taskExistsInproject(fullyQualifiedProject, taskName) { > >> - def taskExists = false > >> - subprojects.each { subProject -> > >> - if > >> (subProject.getPath().equals(fullyQualifiedProject.toString())) { > >> - subProject.tasks.each { projTask -> > >> - if (taskName.equals(projTask.name)) { > >> - taskExists = true > >> - } > >> - } > >> - } > >> - } > >> - return taskExists > >> + subprojects.stream() > >> + .filter { it.path == fullyQualifiedProject.toString() } > >> + .flatMap { it.tasks.stream() } > >> + .anyMatch taskName.&equals > >> } > > The problem is that ‘taskName’ is compares with a task instead of the > task ‘name’ property. Here is a patch that fixes the bug. > > > Thanks. > > -- > Mathieu Lirzin > GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37