diff options
Diffstat (limited to 'sonar-plugin-api')
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\\-\\_]+"; |