This message was deleted.
# kotlin-dsl
s
This message was deleted.
f
Copy code
val taskName = tasks.register("foo${project.name}") {}
Generally there is no need for this, because your task is already scoped to the project. If you have a project with subproject
a
and
b
where both
a
and
b
have a task
t
then you can invoke it as follows: •
./gradlew t
runs
:a:t
and
:b:t
./gradlew :a:t
./gradlew :b:t
👍 1
j
Thanks @Fleshgrinder - will try that