Created
May 6, 2020 22:53
-
-
Save fieldju/0cf16f4351ffb16b18c47e3a8b2a5b1b to your computer and use it in GitHub Desktop.
lazy evaluation of property
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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