You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ma...@apache.org on 2026/02/27 17:12:13 UTC
(grails-core) 06/19: deprecate: grails-events-compat
This is an automated email from the ASF dual-hosted git repository.
matrei pushed a commit to branch deprecate-for-removal
in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit ce3d137cf0d45487465b98c683f00a0b640a1046
Author: Mattias Reichel <ma...@gmail.com>
AuthorDate: Fri Feb 27 08:07:49 2026 +0100
deprecate: grails-events-compat
Add for removal.
---
grails-events/compat/src/main/groovy/grails/artefact/Service.groovy | 2 +-
grails-events/compat/src/main/groovy/grails/events/Events.groovy | 2 +-
grails-events/compat/src/main/groovy/reactor/bus/Bus.java | 2 +-
grails-events/compat/src/main/groovy/reactor/bus/Event.java | 2 +-
grails-events/compat/src/main/groovy/reactor/bus/EventBus.groovy | 2 +-
.../compat/src/main/groovy/reactor/bus/registry/Registration.groovy | 2 +-
.../compat/src/main/groovy/reactor/bus/registry/Subscription.groovy | 2 +-
grails-events/compat/src/main/groovy/reactor/bus/selector/Selector.java | 2 +-
grails-events/compat/src/main/groovy/reactor/fn/Consumer.java | 2 +-
.../src/main/groovy/reactor/spring/context/annotation/Consumer.groovy | 1 +
.../src/main/groovy/reactor/spring/context/annotation/Selector.groovy | 1 +
11 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/grails-events/compat/src/main/groovy/grails/artefact/Service.groovy b/grails-events/compat/src/main/groovy/grails/artefact/Service.groovy
index 27ca34fb2e..91441a16ef 100644
--- a/grails-events/compat/src/main/groovy/grails/artefact/Service.groovy
+++ b/grails-events/compat/src/main/groovy/grails/artefact/Service.groovy
@@ -27,5 +27,5 @@ import grails.events.Events
* @since 3.0
* @deprecated Here for compatibility, do not use directly
*/
-@Deprecated
+@Deprecated(since = '3.3', forRemoval = true)
trait Service extends Events {}
diff --git a/grails-events/compat/src/main/groovy/grails/events/Events.groovy b/grails-events/compat/src/main/groovy/grails/events/Events.groovy
index b29f1225e0..93fef5573a 100644
--- a/grails-events/compat/src/main/groovy/grails/events/Events.groovy
+++ b/grails-events/compat/src/main/groovy/grails/events/Events.groovy
@@ -35,8 +35,8 @@ import reactor.fn.Consumer
* Bridges the OLD API to the new
* @deprecated Here for compatibility only. Do not use directly
*/
-@Deprecated
@CompileStatic
+@Deprecated(since = '3.3', forRemoval = true)
trait Events {
EventBus eventBus
diff --git a/grails-events/compat/src/main/groovy/reactor/bus/Bus.java b/grails-events/compat/src/main/groovy/reactor/bus/Bus.java
index 242d45d822..b207677213 100644
--- a/grails-events/compat/src/main/groovy/reactor/bus/Bus.java
+++ b/grails-events/compat/src/main/groovy/reactor/bus/Bus.java
@@ -31,7 +31,7 @@ import reactor.fn.Consumer;
* @author Andy Wilkinson
* @deprecated Here for compatibility only. Do not use directly
*/
-@Deprecated
+@Deprecated(since = "3.3", forRemoval = true)
public interface Bus<T> {
/**
diff --git a/grails-events/compat/src/main/groovy/reactor/bus/Event.java b/grails-events/compat/src/main/groovy/reactor/bus/Event.java
index 69f50769ec..f6a21eef73 100644
--- a/grails-events/compat/src/main/groovy/reactor/bus/Event.java
+++ b/grails-events/compat/src/main/groovy/reactor/bus/Event.java
@@ -22,7 +22,7 @@ package reactor.bus;
/**
* @deprecated Here for compatibility only. Do not use directly
*/
-@Deprecated
+@Deprecated(since = "3.3", forRemoval = true)
public class Event<T> extends grails.events.Event<T> {
private volatile Object replyTo = null;
diff --git a/grails-events/compat/src/main/groovy/reactor/bus/EventBus.groovy b/grails-events/compat/src/main/groovy/reactor/bus/EventBus.groovy
index 2a4772d5f5..05da4373ab 100644
--- a/grails-events/compat/src/main/groovy/reactor/bus/EventBus.groovy
+++ b/grails-events/compat/src/main/groovy/reactor/bus/EventBus.groovy
@@ -26,7 +26,7 @@ import reactor.fn.Consumer
/**
* @deprecated Here for compatibility only. Do not use directly
*/
-@Deprecated
+@Deprecated(since = '3.3', forRemoval = true)
class EventBus implements Bus {
@Delegate(interfaces = false) grails.events.bus.EventBus eventBus
diff --git a/grails-events/compat/src/main/groovy/reactor/bus/registry/Registration.groovy b/grails-events/compat/src/main/groovy/reactor/bus/registry/Registration.groovy
index f89762bc64..600d1af772 100644
--- a/grails-events/compat/src/main/groovy/reactor/bus/registry/Registration.groovy
+++ b/grails-events/compat/src/main/groovy/reactor/bus/registry/Registration.groovy
@@ -22,5 +22,5 @@ package reactor.bus.registry
/**
* @deprecated Here for compatibility only. Do not use directly
*/
-@Deprecated
+@Deprecated(since = '3.3', forRemoval = true)
interface Registration<K, V> extends grails.events.subscriber.Subscription {}
diff --git a/grails-events/compat/src/main/groovy/reactor/bus/registry/Subscription.groovy b/grails-events/compat/src/main/groovy/reactor/bus/registry/Subscription.groovy
index 6eeca17612..366c16047e 100644
--- a/grails-events/compat/src/main/groovy/reactor/bus/registry/Subscription.groovy
+++ b/grails-events/compat/src/main/groovy/reactor/bus/registry/Subscription.groovy
@@ -22,5 +22,5 @@ package reactor.bus.registry
/**
* @deprecated Here for compatibility only. Do not use directly
*/
-@Deprecated
+@Deprecated(since = '3.3', forRemoval = true)
interface Subscription<K, V> extends Registration<K,V> {}
diff --git a/grails-events/compat/src/main/groovy/reactor/bus/selector/Selector.java b/grails-events/compat/src/main/groovy/reactor/bus/selector/Selector.java
index 508ee3d79d..874d6c9557 100644
--- a/grails-events/compat/src/main/groovy/reactor/bus/selector/Selector.java
+++ b/grails-events/compat/src/main/groovy/reactor/bus/selector/Selector.java
@@ -24,7 +24,7 @@ package reactor.bus.selector;
* @author Andy Wilkinson
* @deprecated Here for compatibility only. Do not use directly
*/
-@Deprecated
+@Deprecated(since = "3.3", forRemoval = true)
public interface Selector<T> {
/**
diff --git a/grails-events/compat/src/main/groovy/reactor/fn/Consumer.java b/grails-events/compat/src/main/groovy/reactor/fn/Consumer.java
index ba2af2fcc6..0bede8b32e 100644
--- a/grails-events/compat/src/main/groovy/reactor/fn/Consumer.java
+++ b/grails-events/compat/src/main/groovy/reactor/fn/Consumer.java
@@ -25,7 +25,7 @@ package reactor.fn;
* @param <T> the type of values to accept
* @deprecated Here for compatibility only. Do not use directly
*/
-@Deprecated
+@Deprecated(since = "3.3", forRemoval = true)
public interface Consumer<T> {
/**
diff --git a/grails-events/compat/src/main/groovy/reactor/spring/context/annotation/Consumer.groovy b/grails-events/compat/src/main/groovy/reactor/spring/context/annotation/Consumer.groovy
index 466778c816..ba745cf4fb 100644
--- a/grails-events/compat/src/main/groovy/reactor/spring/context/annotation/Consumer.groovy
+++ b/grails-events/compat/src/main/groovy/reactor/spring/context/annotation/Consumer.groovy
@@ -33,4 +33,5 @@ import java.lang.annotation.Target
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
+@Deprecated(forRemoval = true, since = "4.0.0")
@interface Consumer {}
diff --git a/grails-events/compat/src/main/groovy/reactor/spring/context/annotation/Selector.groovy b/grails-events/compat/src/main/groovy/reactor/spring/context/annotation/Selector.groovy
index fb525b504b..bcc9038de0 100644
--- a/grails-events/compat/src/main/groovy/reactor/spring/context/annotation/Selector.groovy
+++ b/grails-events/compat/src/main/groovy/reactor/spring/context/annotation/Selector.groovy
@@ -36,6 +36,7 @@ import org.codehaus.groovy.transform.GroovyASTTransformationClass
@Inherited
@Documented
@GroovyASTTransformationClass('org.grails.events.transform.SubscriberTransform')
+@Deprecated(since = '3.3', forRemoval = true)
@interface Selector {
/**