Nathan Bedell
11/21/2023, 1:17 PMmbonnin
11/21/2023, 1:18 PMmbonnin
11/21/2023, 1:19 PMplugin is configured to need to see a particular method on the root project which it tries to call.If you can get the signature of that method (whether a Groovy closure is expected or something else), that'll help
Nathan Bedell
11/21/2023, 1:25 PMmbonnin
11/21/2023, 1:27 PMextra.properties["foo"] = closureOf<Project> {
// Do stuff here
}
Not an expert by any means but I have been bitten by this a couple of timesVampire
11/21/2023, 1:28 PMval foo by extra {
closureOf<Project> {
...
}
}
Vampire
11/21/2023, 1:28 PMNathan Bedell
11/21/2023, 1:32 PMVampire
11/21/2023, 1:33 PMval foo by extra {
KotlinClosure1<String, Unit> ...
}
Vampire
11/21/2023, 1:34 PMOut of curiosity, what's a less hacky way to do something like this?Basically, almost anything that uses
extra
or ext
is hacky and just some work-around for not doing it properly.Vampire
11/21/2023, 1:34 PMVampire
11/21/2023, 1:35 PMVampire
11/21/2023, 1:35 PMAction<...>
as parameter that is then used as callback instead of requiring to set some extra
property to a Groovy closure.Nathan Bedell
11/21/2023, 1:41 PMNathan Bedell
11/21/2023, 1:41 PMVampire
11/21/2023, 1:42 PMNathan Bedell
11/21/2023, 1:43 PMVampire
11/21/2023, 1:44 PMNathan Bedell
11/21/2023, 1:45 PMVampire
11/21/2023, 1:46 PMNathan Bedell
11/21/2023, 1:58 PMNathan Bedell
11/21/2023, 1:59 PM