Skip to content

Commit

Permalink
Bump version to 3.4.0
Browse files Browse the repository at this point in the history
Add staging repository to maven and gradle builds
  • Loading branch information
cescoffier committed Mar 5, 2017
1 parent 72f915b commit e90c905
Show file tree
Hide file tree
Showing 118 changed files with 551 additions and 219 deletions.
4 changes: 2 additions & 2 deletions amqp-bridge-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.vertx</groupId>
<artifactId>amqp-bridge-examples</artifactId>
<version>3.4.0-SNAPSHOT</version>
<version>3.4.0</version>

<dependencies>
<!-- primary deps -->
Expand Down Expand Up @@ -59,7 +59,7 @@
<repositories>
<repository>
<id>staging</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://oss.sonatype.org/content/repositories/iovertx-3664/</url>
</repository>
</repositories>
</profile>
Expand Down
4 changes: 2 additions & 2 deletions camel-bridge-examples/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Launch it by running the `main` method in your IDE or, after having build the pr


----
java -jar target/camel-bridge-examples-3.4.0-SNAPSHOT.jar run io.vertx.example.camel.feed.FeedExample
java -jar target/camel-bridge-examples-3.4.0.jar run io.vertx.example.camel.feed.FeedExample
----

== RMI example
Expand All @@ -45,7 +45,7 @@ This example demonstrates:
Launch it by running the `main` method in your IDE , after having build the project with `mvn clean package`, with:

----
java -jar target/camel-bridge-examples-3.4.0-SNAPSHOT.jar run io.vertx.example.camel.rmi.RMIExample
java -jar target/camel-bridge-examples-3.4.0.jar run io.vertx.example.camel.rmi.RMIExample
----

Then open your browser to: `http://localhost:8080/?name=world`
4 changes: 2 additions & 2 deletions camel-bridge-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.vertx</groupId>
<artifactId>camel-bridge-examples</artifactId>
<version>3.4.0-SNAPSHOT</version>
<version>3.4.0</version>

<dependencies>
<dependency>
Expand Down Expand Up @@ -101,7 +101,7 @@
<repositories>
<repository>
<id>staging</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://oss.sonatype.org/content/repositories/iovertx-3664/</url>
</repository>
</repositories>
</profile>
Expand Down
4 changes: 2 additions & 2 deletions circuit-breaker-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.vertx</groupId>
<artifactId>circuit-breaker-examples</artifactId>
<version>3.4.0-SNAPSHOT</version>
<version>3.4.0</version>

<build>
<plugins>
Expand Down Expand Up @@ -52,7 +52,7 @@
<repositories>
<repository>
<id>staging</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://oss.sonatype.org/content/repositories/iovertx-3664/</url>
</repository>
</repositories>
</profile>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package io.vertx.example.circuit.breaker

import io.vertx.circuitbreaker.CircuitBreaker
import io.vertx.circuitbreaker.CircuitBreakerOptions
import io.vertx.kotlin.circuitbreaker.*

class Client : io.vertx.core.AbstractVerticle() {
override fun start() {
var options = CircuitBreakerOptions(
maxFailures = 5,
timeout = 5000,
fallbackOnFailure = true)

var breaker = CircuitBreaker.create("my-circuit-breaker", vertx, options).openHandler({ v ->
println("Circuit opened")
}).closeHandler({ v ->
println("Circuit closed")
})

var result = breaker.executeWithFallback({ future ->
vertx.createHttpClient().getNow(8080, "localhost", "/", { response ->
if (response.statusCode() != 200) {
future.fail("HTTP error")
} else {
response.exceptionHandler({ future.fail(it) }).bodyHandler({ buffer ->
future.complete(buffer.toString())
})
}
})
}, { v ->
// Executed when the circuit is opened
return "Hello (fallback)"
})

result.setHandler({ ar ->
// Do something with the result
println("Result: ${ar.result()}")
})
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package io.vertx.example.circuit.breaker


class Server : io.vertx.core.AbstractVerticle() {
override fun start() {
vertx.createHttpServer().requestHandler({ req ->
req.response().end("Bonjour")
}).listen(8080)
}
}
4 changes: 2 additions & 2 deletions consul-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.vertx</groupId>
<artifactId>consul-examples</artifactId>
<version>3.4.0-SNAPSHOT</version>
<version>3.4.0</version>

<dependencies>
<dependency>
Expand Down Expand Up @@ -51,7 +51,7 @@
<repositories>
<repository>
<id>staging</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://oss.sonatype.org/content/repositories/iovertx-3664/</url>
</repository>
</repositories>
</profile>
Expand Down
4 changes: 2 additions & 2 deletions core-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.vertx</groupId>
<artifactId>core-examples</artifactId>
<version>3.4.0-SNAPSHOT</version>
<version>3.4.0</version>

<dependencies>

Expand Down Expand Up @@ -64,7 +64,7 @@
<repositories>
<repository>
<id>staging</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://oss.sonatype.org/content/repositories/iovertx-3664/</url>
</repository>
</repositories>
</profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ var server = vertx.createHttpServer({
});

server.requestHandler(function (req) {
req.response().putHeader("content-type", "text/html").end("<html><body><h1>Hello from vert.x!</h1><p>version = " + req.version() + "</p></body></html>");
req.response().putHeader("content-type", "text/html").end("<html><body>" + "<h1>Hello from vert.x!</h1>" + "<p>version = " + req.version() + "</p>" + "</body></html>");
}).listen(8080);
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ var server = vertx.createHttpServer({
});

server.requestHandler(function (req) {
req.response().putHeader("content-type", "text/html").end("<html><body><h1>Hello from vert.x!</h1><p>version = " + req.version() + "</p></body></html>");
req.response().putHeader("content-type", "text/html").end("<html><body>" + "<h1>Hello from vert.x!</h1>" + "<p>version = " + req.version() + "</p>" + "</body></html>");
}).listen(8443);
4 changes: 2 additions & 2 deletions docker-examples/vertx-docker-example-fabric8/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.vertx</groupId>
<artifactId>vertx-docker-example-fabric</artifactId>
<version>3.4.0-SNAPSHOT</version>
<version>3.4.0</version>

<name>Sample Docker Image for Fabric8</name>

Expand Down Expand Up @@ -109,7 +109,7 @@
<repositories>
<repository>
<id>staging</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://oss.sonatype.org/content/repositories/iovertx-3664/</url>
</repository>
</repositories>
</profile>
Expand Down
4 changes: 2 additions & 2 deletions docker-examples/vertx-docker-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.vertx</groupId>
<artifactId>vertx-docker-example</artifactId>
<version>3.4.0-SNAPSHOT</version>
<version>3.4.0</version>

<name>Sample Docker Image with Maven</name>

Expand Down Expand Up @@ -78,7 +78,7 @@
<repositories>
<repository>
<id>staging</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://oss.sonatype.org/content/repositories/iovertx-3664/</url>
</repository>
</repositories>
</profile>
Expand Down
2 changes: 1 addition & 1 deletion docker-examples/vertx-docker-java-fatjar/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

FROM java:8-jre

ENV VERTICLE_FILE hello-verticle-fatjar-3.4.0-SNAPSHOT-fat.jar
ENV VERTICLE_FILE hello-verticle-fatjar-3.4.0-fat.jar

# Set the location of the verticles
ENV VERTICLE_HOME /usr/verticles
Expand Down
4 changes: 2 additions & 2 deletions docker-examples/vertx-docker-java-fatjar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.vertx</groupId>
<artifactId>hello-verticle-fatjar</artifactId>
<version>3.4.0-SNAPSHOT</version>
<version>3.4.0</version>

<name>Sample Docker Image for Java - FatJar</name>

Expand Down Expand Up @@ -73,7 +73,7 @@
<repositories>
<repository>
<id>staging</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://oss.sonatype.org/content/repositories/iovertx-3664/</url>
</repository>
</repositories>
</profile>
Expand Down
2 changes: 1 addition & 1 deletion docker-examples/vertx-docker-java/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
FROM vertx/vertx3

ENV VERTICLE_NAME io.vertx.sample.hello.HelloVerticle
ENV VERTICLE_FILE target/hello-verticle-3.4.0-SNAPSHOT.jar
ENV VERTICLE_FILE target/hello-verticle-3.4.0.jar

# Set the location of the verticles
ENV VERTICLE_HOME /usr/verticles
Expand Down
4 changes: 2 additions & 2 deletions docker-examples/vertx-docker-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.vertx</groupId>
<artifactId>hello-verticle</artifactId>
<version>3.4.0-SNAPSHOT</version>
<version>3.4.0</version>

<name>Sample Docker Image for Java</name>

Expand Down Expand Up @@ -38,7 +38,7 @@
<repositories>
<repository>
<id>staging</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://oss.sonatype.org/content/repositories/iovertx-3664/</url>
</repository>
</repositories>
</profile>
Expand Down
4 changes: 2 additions & 2 deletions examples-utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.vertx</groupId>
<artifactId>examples-utils</artifactId>
<version>3.4.0-SNAPSHOT</version>
<version>3.4.0</version>

<properties>
<tools.jar>${java.home}/../lib/tools.jar</tools.jar>
Expand Down Expand Up @@ -72,7 +72,7 @@
<repositories>
<repository>
<id>staging</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://oss.sonatype.org/content/repositories/iovertx-3664/</url>
</repository>
</repositories>
</profile>
Expand Down
8 changes: 4 additions & 4 deletions fatjar-examples/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To build with Maven

To run the fat jar:

java -jar target/http2-fatjar-3.4.0-SNAPSHOT.jar
java -jar target/http2-fatjar-3.4.0.jar

The build.gradle uses the Gradle shadowJar plugin to assemble the application and all it's dependencies into a single "fat" jar.

Expand All @@ -24,7 +24,7 @@ To build with Gradle

To run the fat jar:

java -jar build/libs/http2-fatjar-3.4.0-SNAPSHOT-all.jar
java -jar build/libs/http2-fatjar-3.4.0-all.jar

NOTE: embedding the key in the jar is a discouraged practice - it is done purposely to keep the example simple

Expand All @@ -40,7 +40,7 @@ To build with Maven

To run the fat jar:

java -jar target/ruby-fatjar-3.4.0-SNAPSHOT.jar.jar
java -jar target/ruby-fatjar-3.4.0.jar.jar

The build.gradle uses the Gradle shadowJar plugin to assemble the application and all it's dependencies into a single "fat" jar.

Expand All @@ -50,4 +50,4 @@ To build with Gradle

To run the fat jar:

java -jar build/libs/ruby-fatjar-3.4.0-SNAPSHOT-all.jar
java -jar build/libs/ruby-fatjar-3.4.0-all.jar
4 changes: 2 additions & 2 deletions fatjar-examples/http2-fatjar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ plugins {
repositories {
jcenter()
// maven {
// url "https://oss.sonatype.org/content/repositories/snapshots"
// url "https://oss.sonatype.org/content/repositories/iovertx-3664/"
// }
}

version = '3.4.0-SNAPSHOT'
version = '3.4.0'
sourceCompatibility = '1.8'

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions fatjar-examples/http2-fatjar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<groupId>io.vertx</groupId>
<artifactId>http2-fatjar</artifactId>
<version>3.4.0-SNAPSHOT</version>
<version>3.4.0</version>

<name>HTTP/2 fatjar</name>

Expand Down Expand Up @@ -97,7 +97,7 @@
<repositories>
<repository>
<id>staging</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://oss.sonatype.org/content/repositories/iovertx-3664/</url>
</repository>
</repositories>
</profile>
Expand Down
4 changes: 2 additions & 2 deletions fatjar-examples/ruby-fatjar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ plugins {
repositories {
jcenter()
// maven {
// url "https://oss.sonatype.org/content/repositories/snapshots"
// url "https://oss.sonatype.org/content/repositories/iovertx-3664/"
// }
}

version = '3.4.0-SNAPSHOT'
version = '3.4.0'
sourceCompatibility = '1.8'

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions fatjar-examples/ruby-fatjar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<groupId>io.vertx</groupId>
<artifactId>ruby-fatjar</artifactId>
<version>3.4.0-SNAPSHOT</version>
<version>3.4.0</version>

<name>Ruby fatjar</name>

Expand Down Expand Up @@ -83,7 +83,7 @@
<repositories>
<repository>
<id>staging</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://oss.sonatype.org/content/repositories/iovertx-3664/</url>
</repository>
</repositories>
</profile>
Expand Down
8 changes: 4 additions & 4 deletions gradle-redeploy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ plugins {

repositories {
jcenter()
// maven {
// url "https://oss.sonatype.org/content/repositories/snapshots"
// }
maven {
url "https://oss.sonatype.org/content/repositories/iovertx-3664/"
}
}

version = '3.4.0-SNAPSHOT'
version = '3.4.0'
sourceCompatibility = '1.8'

dependencies {
Expand Down
Loading

0 comments on commit e90c905

Please sign in to comment.