▲ 2 r/javahelp
Exclude directory in gradle task without editing build.gradle?
So I'm trying to modify a gradle task (exclude a particular directory) in a project without editing the build.gradle file. How can I do so?
Some more context:
I am trying to use IntelliJ to work on an existing Java code base. I am unable to edit build.gradle due to restrictions imposed by the maintainers of the code base. The problem is that IntelliJ creates a .idea directory to store project config data, but this is not properly excluded in build.gradle. As such, the build will include the .idea directory, which is something I do not want.
I am aware of the possibility of adding init.d/init.gradle to my gradle home directory, but it's not a good option for me as I want the solution to be within my project root.
Appreciate any advice, thanks!
u/5haco — 3 days ago