[Android] Gradle: Get or Change build output directory from terminal?
from AstroLightz@lemmy.world to programming@programming.dev on 27 Jun 18:45
https://lemmy.world/post/48723025
from AstroLightz@lemmy.world to programming@programming.dev on 27 Jun 18:45
https://lemmy.world/post/48723025
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?
#programming
threaded - newest
why do you want this?
and does the build need to happen elswhere? otherwise you could read the target directory from the build file and move the stuff afterwards.
I can’t remember fully right now but you should be able to just set it at the command line. docs.gradle.org/current/…/build_environment.html#…