Slackbot
11/17/2023, 5:28 PMAJ
11/17/2023, 5:48 PMVampire
11/17/2023, 6:00 PMIs this a good place to ask really basic build.gradle in groovy questions?Definitely 🙂 First recommendation of course is, to not use Groovy DSL, but Kotlin DSL. 😄 It is the default by now, you immediately get type-safe build scripts, you get actually helpful error messages if you mess up the syntax, and you get amazingly better IDE support when using a proper IDE like IntelliJ IDEA or Android Studio.
Maybe I can use a FileTree which extends FileCollection, and then filter.Probably, yeah, with something like
from(zipTree(fileTree(".").matching { include("project-lib-*.zip") }.singleFile))
But the question is, whether you should really do that. 😄
Besides that in most situations a Sync task is more appropriate than a Copy task. 🙂AJ
11/17/2023, 6:02 PM