Slackbot
10/09/2023, 8:48 AMDoni
10/09/2023, 12:31 PMval buildDurationService = gradle.sharedServices.registerIfAbsent("build-duration-service", BuildDurationService::class.java) { }
after:
val buildDurationService = gradle.sharedServices.registerIfAbsent("build-task-duration", BuildDurationService::class.java) { }
After changing name it works, so strangeVampire
10/09/2023, 1:51 PMBuildOperationListener
which is an internal class instead of OperationCompletionListener
and also uses DefaultGradle
which also is an implementation detail, ....Doni
10/09/2023, 2:12 PMVampire
10/09/2023, 2:15 PMNot sure if it good or bad articleI only had a very cursory look, but it is a bad article. It recommends using internal classes, which is always a bad idea. And especially in this case where there are proper public alternatives.
Very confuse with this naming behavior can causing a bugI don't think it does. It might be coincidence that it worked with the one name but not with the other. Maybe something else you are not aware of changed too or similar.