How can I append a Provider<String> to a Pro...
# community-support
p
How can I append a Provider<String> to a Property<String> (update the value)?
Copy code
val foo: Property<String> = objects.property()
foo.set("foo")
val toAdd: Provider<String> = provider { "toAdd" }
foo.set(foo.zip(toAdd) { foo, toAdd -> foo + toAdd })
println(foo.get()) // I want to get "fooToAdd"
v
Was in two times already and both times drawn back
p
Hmmm, this is indeed disappointing. I have a Property from (my) 3rd party library but I want to add a suffix for my local use-case only 😐
a
Hopefully we ship support for that for Gradle 10 🤞
neonnice 1
v
I don't believe it until it is there and also released 😄
a
Haha, I understand that