Skip to content

Instantly share code, notes, and snippets.

@jonnycaley
Created June 18, 2022 17:30
Show Gist options
  • Save jonnycaley/732e22d113963903172dd1105917b10d to your computer and use it in GitHub Desktop.
Save jonnycaley/732e22d113963903172dd1105917b10d to your computer and use it in GitHub Desktop.
BuildTimeLoggerPlugin - parsing cacheable values
val buildReporterService = gradle.sharedServices.registerIfAbsent("build-reporter-service", BuildReporterService::class.java) { service ->
service.parameters.getBuildTaskNames().set(gradle.startParameter.taskNames.joinToString())
service.parameters.getGradleVersion().set(gradle.gradleVersion)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment