Caleb Cushing
12/17/2024, 5:31 PMProject
, this is not for a task. It should already be registeredMartin
12/17/2024, 5:44 PMMartin
12/17/2024, 5:45 PMCaleb Cushing
12/17/2024, 5:45 PMproject
, I'm not really talking about binding it to a property, but rather using it in a methodMartin
12/17/2024, 5:46 PMCaleb Cushing
12/17/2024, 5:47 PMCaleb Cushing
12/17/2024, 5:47 PMCaleb Cushing
12/17/2024, 5:48 PMCaleb Cushing
12/17/2024, 5:48 PMMartin
12/17/2024, 5:49 PMregisterIfAbsent("...", Foo::class).get()
?Martin
12/17/2024, 5:49 PMCaleb Cushing
12/17/2024, 5:51 PMMartin
12/17/2024, 6:09 PMCaleb Cushing
12/17/2024, 6:09 PMCaleb Cushing
12/17/2024, 6:09 PMCaleb Cushing
12/17/2024, 6:14 PMCaleb Cushing
12/17/2024, 6:14 PMVampire
12/17/2024, 6:14 PMCaleb Cushing
12/17/2024, 6:16 PMthis.project.getGradle().getSharedServices().getRegistrations().withType(GitService.class)
that's not it, because that's expecting the registration typeCaleb Cushing
12/17/2024, 6:16 PMVampire
12/17/2024, 6:16 PMCaleb Cushing
12/17/2024, 6:18 PMthis.project.getGradle().getSharedServices().getRegistrations().named(GitService.class.getCanonicalName()).get().getService()
Caleb Cushing
12/17/2024, 6:18 PMVampire
12/17/2024, 6:19 PMVampire
12/17/2024, 6:19 PM