Skip to content

Instantly share code, notes, and snippets.

@jonnycaley
Created June 18, 2022 17:28
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/6ea6bf638975bde462961f1c93f5a6a8 to your computer and use it in GitHub Desktop.
Save jonnycaley/6ea6bf638975bde462961f1c93f5a6a8 to your computer and use it in GitHub Desktop.
BuildReporterService - parsing cacheable values
abstract class BuildReporterService : BuildService<BuildReporterService.Params>, AutoCloseable {
interface Params : BuildServiceParameters {
fun getBuildTaskNames(): Property<String>
fun getGradleVersion(): Property<String>
}
override fun close() {
val buildTaskNames = parameters.getBuildTaskNames().get()
val gradleVersion = parameters.getGradleVersion().get()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment