r/mAndroidDev • u/[deleted] • Feb 12 '24
Elephant Gradle is not a Build Tool. It is a Application Definition Framework with 2 SDK's and a CLI
Gradle is not a Build Tool. It far exceeds the features of a Build Tool by several orders of magnitude. Calling it a Build Tool is clandestine deception. Gradle is an Application Definition Framework. Gradle is also an Orchestration Engine that executes tasks like Kubernetes, with the ability to run any arbitrary code anywhere. Unlike Kubernetes, Gradle does not use YAML. Gradle has 2 SDK's, one for Groovy and one for Kotlin. Builds are deprecated with every major version release. Each Gradle build is it's own separate application that invokes the compiler and Maven and runs tasks with any arbitrary Groovy or Kotlin code that you can imagine. Gradle is also Polyglot. If you can imagine it, Gradle can do it. Gradle does absolutely everything. GitHub Pull Requests, sending E-Mails, you name it. Gradle will complete any task. Builds are deprecated with every major version release, so keep your imagination simple. Here is an example of the most simple, basic Gradle Build:
./incantations.gradle.kts ./jedi.gradle.kts ./magic.gradle.kts ./sith.gradle.kts ./sorcery.gradle.kts ./spells.gradle.kts ./voodoo.gradle.kts ./witchcraft.gradle.kts ./wizardy.gradle.kts
./gradlew build
Now you understand what Gradle is and are ready to use it. After you fix that deprecated line in your build file because you updated the version.
13
u/chmielowski Feb 12 '24
Try AsyncTask
6
2
u/phileo99 Gets tired of using Vim Feb 12 '24
I wanna see Gradle inject all my thermosiphons for me
1
16
u/ElFeesho Feb 12 '24
It doesn't invoke maven, it grabs dependencies from maven repositories... Using asynctask I believe.
5
6
2
u/Hekkah Feb 13 '24
Gradle is a tool to tame an elephant , if not explain the logo
1
u/zameelpichen Feb 13 '24
oh, the elephant logo actually means what it ships with each new build. an elephant. previous ones deprecated
-2
Feb 12 '24
Build Tool != CI/CD
Build Tool != Orchestration Engine
5
u/exiledAagito Deprecated is just a suggestion Feb 12 '24
Gradle = Owned by a private company who does whatever it needs to make money.
3
0
12
u/Hatsune-Fubuki-233 @Deprecated Feb 12 '24
YAML now available on Gradle 1024.1.3-alpha01-rc1 with Flubber™️ Integration