aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/groovy/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/groovy/org')
-rw-r--r--src/main/groovy/org/qtproject/qt/gradleplugin/QtGradlePlugin.groovy11
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/")
+ }
}
}