Using gradlew and intJ interchangeably

Answered

For I guess a few years (?) now I've been regarding the executable gradle wrapper created by intJ as something I could use on the command line when intJ has the same project open.  This never seemed to cause a problem until I discovered this horrific gotcha: https://stackoverflow.com/questions/67940595/exclude-class-from-jar-with-gradle/67952902#comment120118530_67952902 

Which isn't necessarily something caused by using the two tools together, since it happens with or without intJ running.  However, as it has such nasty implications (I'm sure that's not the first time I've been perplexed by gradle behavior because of what seems like a blatant caching bug), I figured I might as well check:

Is it okay to use the executable `./gradlew` wrapper while working on the project in intJ?  If not, when is it okay?  Should I never use it directly?

1 comment
Comment actions Permalink

It is perfectly fine to use Gradle wrapper launcher script from command line when the project is also loaded into the IDE. Especially if you delegate to Gradle the IDE build, the build behaviour should be identical.

1

Please sign in to leave a comment.