Skip to content

Instantly share code, notes, and snippets.

@jonnycaley
Created June 18, 2022 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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