spierce7
06/22/2021, 3:25 AMrun
task of the server), and then kill the running task when the service is closed.
2. Call a command line command from the root project: ./gradlew :server:run
, and then kill it when the service is closed.
Which is the best approach? I’m not even sure if #1 is possible.gildor
06/22/2021, 3:26 AMVampire
06/22/2021, 7:35 AMexec
to start another Gradle process. But the normal way is, that you actually start the server in the build service via code, not that you execute any task which is impossible.spierce7
06/22/2021, 2:32 PMBut the normal way is, that you actually start the server in the build service via codeSo that mean I’d have to import the gradle server module as a dependency into the build? Is that possible?
Vampire
06/22/2021, 2:41 PMI was told at Kotlin conf a few years ago by a gradle dev to ask my gradle questions here 😛 Didn’t realize there was a gradle slack.See the channel topic for what to discuss here and how to get to the Gradle Community Slack. :-)
> But the normal way is, that you actually start the server in the build service via code
So that mean I’d have to import the gradle server module as a dependency into the build? Is that possible?I don't know what a gradle server module is. If you want to start your code for the test, build service might not be the correct way, but like someone else said starting from within the test.
spierce7
06/23/2021, 12:33 AMI don’t know what a gradle server module is.I’m just talking about a normal Kotlin jvm gradle module that’s the code for my server. I have one big gradle project for my client and server. I’m just confused how I could add the module as a dependency as a build logic for the server, as the server module itself depends on the build logic. It’d be a circular dependency.
spierce7
06/23/2021, 12:33 AMVampire
06/23/2021, 10:43 AMspierce7
06/23/2021, 2:05 PMAs I said you probably need to follow the other advice, starting your server from the test code I guess.That doesn’t allow me to run my tests in non-jvm environments. i.e. against other kotlin multiplatform targets.
Vampire
06/23/2021, 4:14 PMfinalizedBy
relationship.