Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.world
programming·ProgrammingbyAstroLightz

[Android] Gradle: Get or Change build output directory from terminal?

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?

View original on lemmy.world
10

2 replies

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.

1

You reached the end

[Android] Gradle: Get or Change build output directory from terminal? | Spyke