https://kotlinlang.org logo
#gradle
Title
# gradle
v

Vishnu Shrikar

11/12/2023, 11:09 PM
Copy code
tasks.replace("test").dependsOn("desktopTest")
Result shown below, can someone help me figure out wtf happens here because I am very stumped thanks
🧵 1
v

Vampire

11/12/2023, 11:15 PM
Please do not split topics across several threads. This makes following the conversation in the threads view very hard as the context of the other messages is missing. If you have additional information either edit the original message or post to its thread. Regarding the problem, you probably register the task first and some plugin you apply registers the task later again or something like that. But hard to tell without seeing your full build. Anyway, you should probably not declare that dependency anyway, as
test
is not a lifecycle task, and
test
is most probably not really depending on
desktopTest
. It would most probably be more appropriate to make
check
depend on
desktopTest
.
And besides that, your question is off-topic. 😉
v

Vishnu Shrikar

11/12/2023, 11:18 PM
I had to use the 2 topics to get the image ordering, i guess I could have put one underneath the other but I was concerned about clear presentation. All of this is just to get kotest to run properly but I will try the check method and send over the build script. This whole thing is to fix the broken "stable" template that intellij. Isnt this the gradle channel tho? Im using kotlin dsl on gradle so I thought it applied here
v

Vampire

11/12/2023, 11:21 PM
I had to use the 2 topics to get the image ordering, i guess I could have put one underneath the other but I was concerned about clear presentation.
As I said, posting in a second message in the thread of the first message would be better. Now presentation is much less clear if you look at it in the "Threads" view, as the first message is missing completely.
Isnt this the gradle channel tho? Im using kotlin dsl on gradle so I thought it applied here
Just that you use the Kotlin DSL does not qualify to ask here. Your question is exactly the same whether you use Groovy DSL or Kotlin DSL. It is not about how to use the Kotlin DSL or how to use Kotlin in build scripts, or how to use the Kotlin Gradle Plugin. ;-)
v

Vishnu Shrikar

11/12/2023, 11:24 PM
Oh ok, thanks for the explanation. And the threading thing makes sense too, I just did not want people to think I was intentionally spamming them. Ill go to the gradle place linked in the slack and ask there thanks again
👌 1