Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
krystian-panek-vmltech committed Jul 28, 2022
1 parent dac8e4f commit 1f10785
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,12 @@ class Docker(val environment: EnvironmentExtension) {
property(composePropertyName) { load(fileProvider.get()) }
}

fun <T> property(name: String, valueProvider: () -> T) = property(name, common.project.provider { valueProvider() })

/**
* @see <https://github.com/gradle/gradle/issues/8500>
*/
fun <T> property(name: String, valueProvider: Provider<T>) {
composeProperties.putAll(common.project.provider { mapOf(name to valueProvider) })
composeProperties.putAll(common.project.provider { mapOf(name to valueProvider.get()) })
}

fun <T> property(name: String, valueProvider: () -> T) = property(name, common.project.provider { valueProvider() })
}

0 comments on commit 1f10785

Please sign in to comment.