CMake/Android: enable Gradle for building Qt JARs


Add Gradle project structure for JAR builds which allows
CMake to run a Gradle build and also enables such code to
be managed from IDEs easily.

The default Android platform Jar include won't be needed
because it's handled by Gradle, and the main QtAndroid.jar
include is added automatically by qt_internal_add_jar().

This also update gitignore with Gradle, JDTLS and IntelliJ
ignores. It also removes files that might have been used
exclusively for javac and some that are not needed for
neither javac nor Gradle.

Task-number: QTBUG-132915
Change-Id: Ic41d850173d4e01fd0532d49b45b009561693562
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
commitefd85e926af071666969d4879cca619befc69be3
parent6ff1fa8f84b4dad9c23a92040c3407bec4421465
authorAssam Boudjelthia <assam.boudjelthia@qt.io>
committerAssam Boudjelthia <assam.boudjelthia@qt.io>
commit timeFri, 8 May 2026 07:01:41 +0000