I want to use custom configurations for different tasks.
I have 4 subprojects: - usecase1 - usecase1db - usecase1stub - webapp
I want to use tomcatRun in my webapp task with different configurations: one should be the dev configuration, which is including usecase1stub implementation one should be the prod configuration, which is including usecase1db implementation
One way to do this is by setting an envrionment parameter to gradle command line, i.e: “gradle -Ptarget=prod …”, and then inserting an if statement into the task:
How can I get those dependencies (e.g. dev) in a seperate task? I want to switch between dev and prod dependencies when running tomcat run… how to write the script below?