This message was deleted.
# community-support
s
This message was deleted.
v
You could probably use a build service for that.
t
Hi Javi 👋 You can have a method of the task that you can access with a provider API. I bet it is not a good practice, but should work.
Copy code
class MyTask : DefaultTask() {
  fun giveMeString(): String = "something"
}

val task = tasks.register<MyTask>("someTask")

task.flatMap { it.giveMeString() }
e
that won't work with CC
you could also write the string to an output file
j
that last is what I am currently doing, but it looks a bit overkill for me
p
There's https://github.com/gradle/gradle/issues/9190, please upvote if you feel like so
j
thank you all and upvoted!