diff --git a/.build/update-workshop-target-version.sh b/.build/update-workshop-target-version.sh new file mode 100755 index 000000000..70c1903cd --- /dev/null +++ b/.build/update-workshop-target-version.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +./mvnw -Pupdate-workshop-examples -f workshop-examples compile -DworkshopVersion=$1 +find workshop-examples -name '*.java' | xargs chmod +x \ No newline at end of file diff --git a/pom.xml b/pom.xml index 32290243d..496f571f7 100644 --- a/pom.xml +++ b/pom.xml @@ -116,6 +116,7 @@ 1.7.20 1.2.3 + 1.1.0 @@ -369,6 +370,11 @@ + + io.github.floverfelt + find-and-replace-maven-plugin + ${find-and-replace-maven-plugin.version} + diff --git a/workshop-examples/pom.xml b/workshop-examples/pom.xml index 71be2cc1e..982a86a40 100644 --- a/workshop-examples/pom.xml +++ b/workshop-examples/pom.xml @@ -33,4 +33,34 @@ + + + update-workshop-examples + + + + io.github.floverfelt + find-and-replace-maven-plugin + + + exec + process-sources + + find-and-replace + + + file-contents + //DEPS io.smallrye.reactive:mutiny:.* + //DEPS io.smallrye.reactive:mutiny:${workshopVersion} + true + .java + + + + + + + + + diff --git a/workshop-examples/src/main/java/_03_composition_transformation/_18_Multi_To_Uni_And_Back.java b/workshop-examples/src/main/java/_03_composition_transformation/_18_Multi_To_Uni_And_Back.java index e4c9e8715..9b7999f30 100755 --- a/workshop-examples/src/main/java/_03_composition_transformation/_18_Multi_To_Uni_And_Back.java +++ b/workshop-examples/src/main/java/_03_composition_transformation/_18_Multi_To_Uni_And_Back.java @@ -18,4 +18,4 @@ public static void main(String[] args) throws InterruptedException { .toMulti() .subscribe().with(System.out::println); } -} \ No newline at end of file +}