Open mranders-hltv opened 2 years ago
Indeed it is intentional. I would recommend you to create separate modules, one for you Java project and one for Terraform. This would also make it easier to share lambdas.
Thank you for your answer. I haven't experienced this kind of issue before with other plugins like Node or Docker.
Out of curiosity, what is the reasoning for this limitation? Is it a technical thing with respect to the lambdas, or something else? Which potential issues could arise if the Terraform plugin was applied in a Gradle project that also applies the Java plugin?
I ran into an issue when attempting to apply both the Java and Terraform plugins, and declaring an implementation dependency:
This fails with the following error:
I guess it is because the Terraform plugin uses the
implementation
configuration (like the Java plugin does), and becomes confused when a non-Terraform project is added.In the ideal world, I would like to have a main module, which depends on the required Java/Kotlin modules, and also describes the terraform structure needed to deploy the code, along with the appropriate Gradle tasks for doing so.
Is it intentional that the plugin can't coexist with the Java plugin?