diff options
author | Nikunj Arora <[email protected]> | 2025-05-15 15:10:36 +0300 |
---|---|---|
committer | Nikunj Arora <[email protected]> | 2025-05-23 16:54:50 +0300 |
commit | 74f6de1f57204956e08636362b8d08ddd832173c (patch) | |
tree | 9e07284c1a65f3f510b3504befb4c43b16b65aa0 | |
parent | 4a1cb0e6271f1fe7adbd706a11cceb0131d91429 (diff) |
When using the QtBuild extension in Android project, the console will
print out a warning that this method is deprecated and point the user to
the documentation for the new gradle.properties method.
Pick-to: 1.3
Change-Id: Ia76882608cee4312c4c5f68d2434df1a3afc6a26
Reviewed-by: Assam Boudjelthia <[email protected]>
-rw-r--r-- | src/main/groovy/org/qtproject/qt/gradleplugin/QtGradlePlugin.groovy | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/groovy/org/qtproject/qt/gradleplugin/QtGradlePlugin.groovy b/src/main/groovy/org/qtproject/qt/gradleplugin/QtGradlePlugin.groovy index 7aa733a..0bdf0a5 100644 --- a/src/main/groovy/org/qtproject/qt/gradleplugin/QtGradlePlugin.groovy +++ b/src/main/groovy/org/qtproject/qt/gradleplugin/QtGradlePlugin.groovy @@ -6,6 +6,7 @@ package org.qtproject.qt.gradleplugin import org.gradle.api.Plugin import org.gradle.api.Project +@Deprecated class QtPluginExtension { // qtPath and qtKitDir kept as File to avoid breaking the public API, even though they are used as strings later. File qtPath @@ -60,6 +61,16 @@ class QtGradlePlugin implements Plugin<Project> { } catch (GroovyException) { } } + + if (extension.qtPath || + extension.qtKitDir || + extension.projectPath || + extension.ninjaPath || + extension.extraCMakeArguments) { + System.err.println("Warning: QtBuild extension is deprecated and will be removed " + + "in the future.\nDefine properties in gradle.properties instead. " + + "For more information, see https://doc.qt.io/qtgradleplugin/") + } } } |