Skip to content

Instantly share code, notes, and snippets.

@fieldju
Created May 6, 2020 22:53
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 fieldju/0cf16f4351ffb16b18c47e3a8b2a5b1b to your computer and use it in GitHub Desktop.
Save fieldju/0cf16f4351ffb16b18c47e3a8b2a5b1b to your computer and use it in GitHub Desktop.
lazy evaluation of property
def version = project.getObjects().property(String.class)
version.set(project.provider({ subProj.configurations.compileClasspath.resolvedConfiguration.firstLevelModuleDependencies.find( { module ->
return module.moduleName == "clouddriver-web"
}).moduleVersion}))
def ossVersion = "${ -> version.get()}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment