also, is there a programmatic way to skip dokka co...
# dokka
e
also, is there a programmatic way to skip dokka completely (for example on CI)?
a
You could configure the
onlyIf
of the task to run if the env variable CI is not set
e
this is exactly what I'm doing right now
I hoped something more elegant and less verbose
a
Fits on a single line and is like 20 characters, I don't think you'll find a less verbose way to do it.
e
I'm using it for all the dokka tasks + dokkaJavadocJar, dokkaHtmlJar, sourceJar, artifacts and javadoc and source jar
a
Now I'm curious, why? Personally I publish almost all of those things, but if I didn't I'd leave most of them in just because they're so fast
e
well, good question, I was told so
I guess to save quotas (especially on osx)
dokka is quite intensive
a
I can agree on dokka, but some of the rest seem excessive, personally I'd use
--profile
and see if there's any savings to be had there
b
You can do gradle build -x dokkaHtml
­čĹŹ 1
This will skip dokkaHtml task
Adjust as needed