aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2018-11-14 11:21:10 +0100
committersonartech <sonartech@sonarsource.com>2019-01-16 09:42:59 +0100
commite48d9b29484c8e23fb0ebdae73bfceb27e656374 (patch)
tree8b48dee7a082a9ac765a4a220062e120d13a6fa8 /sonar-plugin-api
parentaec83bafc952d4786fa9552fb8749c9efce517b5 (diff)
downloadsonarqube-e48d9b29484c8e23fb0ebdae73bfceb27e656374.tar.gz
sonarqube-e48d9b29484c8e23fb0ebdae73bfceb27e656374.zip
SONAR-11465 Deprecate task extensions
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java4
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/task/Task.java2
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/task/TaskDefinition.java2
3 files changed, 8 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java b/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java
index 4670e0e371a..5bbb4974373 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java
@@ -351,12 +351,16 @@ public interface CoreProperties {
/**
* @since 3.5
+ * @deprecated since 7.6
*/
+ @Deprecated
String TASK = "sonar.task";
/**
* @since 3.6
+ * @deprecated since 7.6
*/
+ @Deprecated
String SCAN_TASK = "scan";
/**
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/task/Task.java b/sonar-plugin-api/src/main/java/org/sonar/api/task/Task.java
index c1d71c412f3..449255f6791 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/task/Task.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/task/Task.java
@@ -25,9 +25,11 @@ import org.sonar.api.batch.InstantiationStrategy;
/**
* Implement this interface to provide the behavior of a task.
* @since 3.6
+ * @deprecated since 7.6
*/
@ScannerSide
@InstantiationStrategy(InstantiationStrategy.PER_TASK)
+@Deprecated
public interface Task {
void execute();
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskDefinition.java b/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskDefinition.java
index dfee4d2ca7a..06f781bf264 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskDefinition.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/task/TaskDefinition.java
@@ -30,10 +30,12 @@ import org.sonar.api.batch.ScannerSide;
* Register and describe a {@link TaskExtension}.
*
* @since 3.6
+ * @deprecated since 7.6
*/
@ExtensionPoint
@ScannerSide
@InstantiationStrategy(InstantiationStrategy.PER_TASK)
+@Deprecated
public class TaskDefinition implements Comparable<TaskDefinition> {
static final String KEY_PATTERN = "[a-zA-Z0-9\\-\\_]+";