What gradle task can I use to build a multimodule ...
# multiplatform
e
What gradle task can I use to build a multimodule KMP project without running tests?
build
runs tests (I think it depends on
check
)
e
the lifecycle task (in all Gradle projects, multiplatform or not, same as Maven and Ant) for "makes binaries but not tests" is
assemble
e
Oh interesting, I thought that was Android only
s
I use „build -x test“ 😄
b
FYI build -x test doesn't exclude most of kmp tests since they're named as jsBrowserTest jvmTest and so on.
s
Interestingly it works for me. But to be extra sure one might add "-x allTests"
m

https://docs.gradle.org/current/userguide/img/javaPluginTasks.png

For more detailed task dependencies you can have a look at this 🙂
f
@Mustafa Ozhan where did you find that image in documentation?
m
I am not sure if it is in the documentation but you can simply search for
gradle task dependencies
in google and open the images, this is just one of them: https://www.google.com/search?q=gradle+task+dependencies&tbm=isch&ved=2ahUKEwjb7bSql[…]nwAEB&sclient=img&ei=dHu2ZNvjOYuznsEP8NmO-AQ&bih=988&biw=1554 maybe order of the pictures can be different per user
f
ahh ok ...I was searching for it in the documentation 😆
t