Skip to content

Commit

Permalink
Bump Java SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Apr 25, 2024
1 parent fac3a11 commit d78ee16
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 51 deletions.
8 changes: 5 additions & 3 deletions .tools/update_jvm_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SELF_PATH=${BASH_SOURCE[0]:-"$(command -v -- "$0")"}
PROJECT_ROOT="$(dirname "$SELF_PATH")/.."

function search_and_replace_version_gradle() {
sed -i 's/val restateVersion = "[0-9A-Z.-]*"/val restateVersion = "$NEW_VERSION"/' $1/build.gradle.kts
sed -i 's/val restateVersion = "[0-9A-Z.-]*"/val restateVersion = "'$NEW_VERSION'"/' $1/build.gradle.kts
}

function search_and_replace_version_maven() {
Expand All @@ -15,10 +15,12 @@ function search_and_replace_version_maven() {
search_and_replace_version_gradle $PROJECT_ROOT/templates/java-gradle
search_and_replace_version_maven $PROJECT_ROOT/templates/java-maven
search_and_replace_version_gradle $PROJECT_ROOT/templates/kotlin-gradle
search_and_replace_version_gradle $PROJECT_ROOT/templates/kotlin-gradle-lambda-cdk
search_and_replace_version_gradle $PROJECT_ROOT/templates/kotlin-gradle-lambda-cdk/lambda

search_and_replace_version_gradle $PROJECT_ROOT/patterns-use-cases/sagas/sagas-java
search_and_replace_version_gradle $PROJECT_ROOT/patterns-use-cases/sagas/sagas-kotlin

search_and_replace_version_gradle $PROJECT_ROOT/tutorials/tour-of-restate-java

search_and_replace_version_gradle $PROJECT_ROOT/end-to-end-applications/java/food-ordering/app
search_and_replace_version_gradle $PROJECT_ROOT/end-to-end-applications/java/food-ordering/app/restate-app
search_and_replace_version_gradle $PROJECT_ROOT/end-to-end-applications/java/food-ordering/app/restaurant
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ plugins {
}

repositories {
maven {
url = URI.create("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
mavenCentral()
}

val restateVersion = "0.9.0-SNAPSHOT"
val restateVersion = "0.9.0"

dependencies {
// Restate SDK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ plugins {
}

repositories {
maven {
url = URI.create("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
mavenCentral()
}

val restateVersion = "0.9.0-SNAPSHOT"
val restateVersion = "0.9.0"

dependencies {
// Kafka
Expand Down
5 changes: 1 addition & 4 deletions patterns-use-cases/sagas/sagas-java/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ plugins {
}

repositories {
maven {
url = URI.create("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
mavenCentral()
}

val restateVersion = "0.9.0-SNAPSHOT"
val restateVersion = "0.9.0"

dependencies {
annotationProcessor("dev.restate:sdk-api-gen:$restateVersion")
Expand Down
5 changes: 1 addition & 4 deletions patterns-use-cases/sagas/sagas-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ plugins {
}

repositories {
maven {
url = URI.create("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
mavenCentral()
}

val restateVersion = "0.9.0-SNAPSHOT"
val restateVersion = "0.9.0"

dependencies {
// Annotation processor
Expand Down
5 changes: 1 addition & 4 deletions templates/java-gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ plugins {
}

repositories {
maven {
url = URI.create("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
mavenCentral()
}

val restateVersion = "0.9.0-SNAPSHOT"
val restateVersion = "0.9.0"

dependencies {
annotationProcessor("dev.restate:sdk-api-gen:$restateVersion")
Expand Down
17 changes: 1 addition & 16 deletions templates/java-maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,9 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<restate.version>0.9.0-SNAPSHOT</restate.version>
<restate.version>0.9.0</restate.version>
</properties>

<!-- TODO Remove this once we release -->
<repositories>
<repository>
<id>nexus</id>
<name>nexus-snapshot</name>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>dev.restate</groupId>
Expand Down
5 changes: 1 addition & 4 deletions templates/kotlin-gradle-lambda-cdk/lambda/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@ plugins {
}

repositories {
maven {
url = URI.create("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
mavenCentral()
}

val restateVersion = "0.9.0-SNAPSHOT"
val restateVersion = "0.9.0"

dependencies {
// Annotation processor
Expand Down
5 changes: 1 addition & 4 deletions templates/kotlin-gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ plugins {
}

repositories {
maven {
url = URI.create("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
mavenCentral()
}

val restateVersion = "0.9.0-SNAPSHOT"
val restateVersion = "0.9.0"

dependencies {
// Annotation processor
Expand Down
5 changes: 1 addition & 4 deletions tutorials/tour-of-restate-java/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ plugins {
}

repositories {
maven {
url = URI.create("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
mavenCentral()
}

val restateVersion = "0.9.0-SNAPSHOT"
val restateVersion = "0.9.0"

dependencies {
// Restate SDK
Expand Down

0 comments on commit d78ee16

Please sign in to comment.