Qt Gradle Plugin 1.3 is released! (original) (raw)

Qt Gradle Plugin 1.3 (QtGP) is now "out in the fields"! Used by Qt Tools for Android Studio and Qt Quick for Android projects like the API examples. It's ready to integrate via Maven Central like any Gradle plugin. If you missed version 1.2, check out the previous blog post. If you missed the 1.2 release, we recommend reading the QtGP 1.2 blog post to catch up. Now, let’s dive into what’s new in 1.3!

Updates

Support for multi-project structure

In earlier versions, configuration was done in the QtBuild section of the app’s build.gradle. With version 1.3, you can now configure via gradle.properties, making it easier to support multi-project Gradle builds. All new properties start with qt. The old QtBuild section is still supported but deprecated and will be removed in upcoming major version, earliest on 2.0. See the table below for old vs. new syntax, and check the Qt Gradle Plugin docs for more details!

Qt.Build section gradle.properties
qtPath qt.path
qtProjectPath qt.projectPath
qtKitDir qt.abiPath
qtNinjaPath qt.ninjaPath
qtExtraCMakeArguments qt.extraCMakeArguments

Instructions to use product flavors

If your project uses product flavors, the Qt Gradle plugin now includes guidance on how to configure any flavor you prefer.

Small improvements

Local builds no longer require signing, and the Qt Gradle plugin now prints its version at the start of the build—making it easy to spot in logs! Publishing to Maven Central is done with nmcp, now updated to version 0.1.4

What next?

Do you have any features you would like to see added to the plugin? Perhaps on the next version? Comment below! You can track work progress and provide feedback at bugreports.qt.io.