For a script I’m making, I’m looking for a way to either get the build output directory Gradle uses, or change it to something different.
I’m aware you could edit one of the gradle files in a project, but my script requires not altering the android app project (It only uses gradlew / gradle.bat that comes with it to build)
Is there some way to change gradle’s build output directory, or if not, a way to get it from the command line?


I can’t remember fully right now but you should be able to just set it at the command line. https://docs.gradle.org/current/userguide/build_environment.html#setting_a_project_property