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: I46452ba0f7e0213ea2758ebaa4e7474bffcc301c
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
| commit | 3a46a29bc285cf1e2313317e6a198308f068b425 |
| parent | ffdbb742d40b38fad8fe92c8cae864340c81de64 |
| author | Assam Boudjelthia <assam.boudjelthia@qt.io> |
| committer | Assam Boudjelthia <assam.boudjelthia@qt.io> |
| commit time | Tue, 5 May 2026 15:21:22 +0000 |
- M .gitignore
- M REUSE.toml
- M licenseRule.json
- A src/android/bluetooth/.gitignore
- D src/android/bluetooth/AndroidManifest.xml
- M src/android/bluetooth/CMakeLists.txt
- A src/android/bluetooth/build.gradle
- A src/android/bluetooth/gradle.properties
- A src/android/bluetooth/gradle/libs.versions.toml
- A src/android/bluetooth/settings.gradle
- A src/android/nfc/.gitignore
- D src/android/nfc/AndroidManifest.xml
- M src/android/nfc/CMakeLists.txt
- A src/android/nfc/build.gradle
- A src/android/nfc/gradle.properties
- A src/android/nfc/gradle/libs.versions.toml
- A src/android/nfc/settings.gradle