Skip to content

Commit

Permalink
[RELEASE] - Bump version to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
smallrye-ci committed Apr 8, 2020
1 parent 836cdb1 commit ec38d90
Show file tree
Hide file tree
Showing 37 changed files with 130 additions and 128 deletions.
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
</parent>

<artifactId>smallrye-reactive-messaging-api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion documentation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
</parent>

<artifactId>documentation</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions documentation/src/main/doc/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ nav:
asciidoc:
attributes:
version: '2.0'
project-version: '2.0.0-SNAPSHOT'
project-version: '2.0.0'
weld-version: '3.1.3.Final'
smallrye-config-version: '1.7.0'
mutiny-version: '0.4.4'
camel-version: '3.2.0'
spec-version: '1.0'
javadoc-base: 'https://smallrye.io/smallrye-reactive-messaging/2.x-preview/2.0.0-SNAPSHOT/apidocs'
javadoc-base: 'https://smallrye.io/smallrye-reactive-messaging/2.x-preview/2.0.0/apidocs'

6 changes: 3 additions & 3 deletions examples/amqp-quickstart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
<relativePath>../..</relativePath>
</parent>

Expand All @@ -26,7 +26,7 @@
<dependency>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging-provider</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
</dependency>

<dependency>
Expand All @@ -44,7 +44,7 @@
<dependency>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging-amqp</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
<exclusions>
<exclusion>
<!-- this avoid having the logging working, to exclude it -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package acme;

import org.eclipse.microprofile.reactive.messaging.Channel;
import org.eclipse.microprofile.reactive.messaging.Emitter;

import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;

import org.eclipse.microprofile.reactive.messaging.Channel;
import org.eclipse.microprofile.reactive.messaging.Emitter;

@ApplicationScoped
public class BeanUsingAnEmitter {
Expand Down
6 changes: 3 additions & 3 deletions examples/awssns-quickstart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
<relativePath>../..</relativePath>
</parent>

Expand All @@ -33,7 +33,7 @@
<dependency>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging-provider</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
</dependency>

<dependency>
Expand All @@ -51,7 +51,7 @@
<dependency>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging-aws-sns</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
</dependency>

<dependency>
Expand Down
6 changes: 3 additions & 3 deletions examples/cloud-events/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
<relativePath>../..</relativePath>
</parent>

Expand All @@ -25,13 +25,13 @@
<dependency>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging-cloud-events</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
</dependency>

<dependency>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging-provider</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package io.smallrye.reactive.messaging.example.eventclouds;

import io.smallrye.reactive.messaging.cloudevents.CloudEventMessage;
import io.smallrye.reactive.messaging.cloudevents.CloudEventMessageBuilder;
import javax.enterprise.context.ApplicationScoped;

import org.eclipse.microprofile.reactive.messaging.Incoming;
import org.eclipse.microprofile.reactive.messaging.Outgoing;

import javax.enterprise.context.ApplicationScoped;
import io.smallrye.reactive.messaging.cloudevents.CloudEventMessage;
import io.smallrye.reactive.messaging.cloudevents.CloudEventMessageBuilder;

@ApplicationScoped
public class MyCloudEventProcessor {
Expand All @@ -14,6 +15,6 @@ public class MyCloudEventProcessor {
@Outgoing("result")
public CloudEventMessage<String> process(CloudEventMessage<String> message) {
return CloudEventMessageBuilder.from(message)
.withData("Hello " + message.getPayload()).build();
.withData("Hello " + message.getPayload()).build();
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.smallrye.reactive.messaging.example.eventclouds;

import org.eclipse.microprofile.reactive.messaging.Incoming;

import javax.enterprise.context.ApplicationScoped;

import org.eclipse.microprofile.reactive.messaging.Incoming;

@ApplicationScoped
public class MyCloudEventSink {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
package io.smallrye.reactive.messaging.example.eventclouds;

import io.reactivex.Flowable;
import io.reactivex.schedulers.Schedulers;
import io.smallrye.reactive.messaging.cloudevents.CloudEventMessage;
import io.smallrye.reactive.messaging.cloudevents.CloudEventMessageBuilder;
import org.eclipse.microprofile.reactive.messaging.Outgoing;
import org.reactivestreams.Publisher;

import javax.enterprise.context.ApplicationScoped;
import java.net.URI;
import java.time.ZonedDateTime;
import java.util.UUID;
import java.util.concurrent.TimeUnit;

import javax.enterprise.context.ApplicationScoped;

import org.eclipse.microprofile.reactive.messaging.Outgoing;
import org.reactivestreams.Publisher;

import io.reactivex.Flowable;
import io.reactivex.schedulers.Schedulers;
import io.smallrye.reactive.messaging.cloudevents.CloudEventMessage;
import io.smallrye.reactive.messaging.cloudevents.CloudEventMessageBuilder;

@ApplicationScoped
public class MyCloudEventSource {

@Outgoing("source")
public Publisher<CloudEventMessage<String>> source() {
return Flowable.interval(1, TimeUnit.SECONDS)
.observeOn(Schedulers.computation())
.map(l -> new CloudEventMessageBuilder<String>()
.withId(UUID.randomUUID().toString())
.withType("counter")
.withSource(new URI("local://timer"))
.withDataContentType("text/plain")
.withTime(ZonedDateTime.now())
.withData(Long.toString(l))
.build());
.observeOn(Schedulers.computation())
.map(l -> new CloudEventMessageBuilder<String>()
.withId(UUID.randomUUID().toString())
.withType("counter")
.withSource(new URI("local://timer"))
.withDataContentType("text/plain")
.withTime(ZonedDateTime.now())
.withData(Long.toString(l))
.build());
}
}
2 changes: 1 addition & 1 deletion examples/gcp-pubsub-quickstart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
8 changes: 4 additions & 4 deletions examples/kafka-quickstart-kotlin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<parent>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
<relativePath>../..</relativePath>
</parent>

<artifactId>kafka-quickstart-kotlin</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand All @@ -28,7 +28,7 @@
<dependency>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging-provider</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
</dependency>

<dependency>
Expand All @@ -46,7 +46,7 @@
<dependency>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging-kafka</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
<exclusions>
<exclusion>
<!-- this avoid having the logging working, to exclude it -->
Expand Down
8 changes: 4 additions & 4 deletions examples/kafka-quickstart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<parent>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
<relativePath>../..</relativePath>
</parent>

<artifactId>kafka-quickstart</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand All @@ -27,7 +27,7 @@
<dependency>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging-provider</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
</dependency>

<dependency>
Expand All @@ -45,7 +45,7 @@
<dependency>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging-kafka</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
<exclusions>
<exclusion>
<!-- this avoid having the logging working, to exclude it -->
Expand Down
6 changes: 3 additions & 3 deletions examples/mqtt-quickstart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
<relativePath>../..</relativePath>
</parent>

Expand All @@ -26,7 +26,7 @@
<dependency>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging-provider</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
</dependency>

<dependency>
Expand All @@ -44,7 +44,7 @@
<dependency>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging-mqtt</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
<exclusions>
<exclusion>
<!-- this avoid having the logging working, to exclude it -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
package acme;

import org.eclipse.microprofile.reactive.messaging.Channel;
import org.eclipse.microprofile.reactive.messaging.Emitter;

import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;


import org.eclipse.microprofile.reactive.messaging.Channel;
import org.eclipse.microprofile.reactive.messaging.Emitter;

@ApplicationScoped
public class BeanUsingAnEmitter {
Expand Down
2 changes: 1 addition & 1 deletion examples/mqtt-server-quickstart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.smallrye.reactive</groupId>
<artifactId>smallrye-reactive-messaging</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
package acme;

import org.eclipse.microprofile.reactive.messaging.Channel;
import org.eclipse.microprofile.reactive.messaging.Emitter;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;

import org.eclipse.microprofile.reactive.messaging.Channel;
import org.eclipse.microprofile.reactive.messaging.Emitter;

@ApplicationScoped
public class BeanUsingAnEmitter {

@Inject
@Channel("test-messages")
Emitter<String> emitter;
@Inject
@Channel("test-messages")
Emitter<String> emitter;

public void periodicallySendMqttMessage() {
AtomicInteger counter = new AtomicInteger();
Executors.newSingleThreadScheduledExecutor()
.scheduleAtFixedRate(() -> {
emitter.send("Hello " + counter.getAndIncrement());
},
1, 1, TimeUnit.SECONDS);
}
public void periodicallySendMqttMessage() {
AtomicInteger counter = new AtomicInteger();
Executors.newSingleThreadScheduledExecutor()
.scheduleAtFixedRate(() -> {
emitter.send("Hello " + counter.getAndIncrement());
},
1, 1, TimeUnit.SECONDS);
}

}
Loading

0 comments on commit ec38d90

Please sign in to comment.