Hi there ๐๐ผ Wondering if anyone can help me with a problem I'm struggling to work around. I have this super lightweight kotlin program that executes some script, thats a separate module in my android project. I can run this kotlin program via the command line:
./gradlew :myprogram:run
however I want to run this as part of the pre-defined
build
gradle task. In other words, I always want this to run when someone tries to build the android app, and prior to that app compiling. Any suggestions on how I would do that? Some things I have tried ๐งต
Ciaran Sloan
08/10/2023, 10:22 AM
1. Trying to get the gradle task and make it depend on pre-build:
im making these declarations above in the projects root gradle file
a
Adam S
08/10/2023, 10:35 AM
this code will first try to fetch the task that's defined in the subproject, but because the root build.gradle.kts file is evaluated first, Gradle won't have had a chance to create the