-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use TaskCollection.named
overload taking Spec
#1
Conversation
Use the new TaskCollection.named method taking a Spec for depending on tasks that might not exist. See https://docs.gradle.org/8.6/release-notes.html#lazy-name-based-filtering-of-tasks
btw, what the reason for this commit? asking to make sure this won't conflict with that change. |
For some reason named thrw an exception when the task doesn't exist. Did you test this on kord |
not yet, how would i best do this? |
Push to Maven local |
makes sense, it's documented to do so: https://docs.gradle.org/current/javadoc/org/gradle/api/NamedDomainObjectCollection.html#named-java.lang.String- |
ig this doesn't matter when using the predicate |
yes, it's just gonna be an empty collection and |
i did, it works after fixing this npe and running kord's build with gradle 8.6 |
with kordlib/kord#920 kord will use gradle 8.6 |
TaskCollection.named
overload taking Spec
Use the new
TaskCollection.named
method taking aSpec
for depending on tasks that might not exist.See https://docs.gradle.org/8.6/release-notes.html#lazy-name-based-filtering-of-tasks