if I just want `tasks.check` to be generated... wh...
# community-support
c
if I just want
tasks.check
to be generated... what plugin should I apply? this is a root project, it doesn't really have java, applying
java-platform
does give it to me though. I"m just wondering if there's a plugin that does ... less
t
tasks.register<Task>("check")
is the quick and easy without any extra overhead if you just need it to appease like a templated CI or something that assumes it is always present.
☝️ 1
e
You can apply
base
to get
check
.
👍 1
c
thanks!
🫡 1
e
``base`` also gives you
clean
task and
clean*
task rule, so you want it in any project with tasks that produce build output
v
Actually, it is the
lifecycle-base
plugin. This is the bottom-most built-in plugin and adds
build
,
check
,
clean
,
assemble
, and the
clean<task>
task rule. The
base
plugin applies that plugin and does some other things like registering the
base
extension, configuring archive tasks, adding
build<configuration>
task rule, adding
archives
and
default
configuration, and so on.
👍 1
I would not register a
check
task manually, because if you ever want to apply any other plugin in that project that causes the
lifecycle-base
plugin to be applied, you then have to replace it as the
check
tasks would conflict.