Skip to content

Commit

Permalink
Renamings of Java artifacts (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper authored Oct 11, 2023
1 parent 76dd46f commit 7d03797
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
8 changes: 2 additions & 6 deletions services/java-services/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ plugins {
}

dependencies {
implementation(libs.restate.sdk.core)
implementation(libs.restate.sdk.blocking)
implementation(libs.restate.sdk.vertx)
implementation(libs.restate.sdk.java.blocking)
implementation(libs.restate.sdk.http.vertx)
implementation(libs.restate.sdk.jackson)

implementation(project(":contracts"))
Expand All @@ -25,9 +24,6 @@ dependencies {
implementation(platform(libs.jackson.bom))
implementation(libs.jackson.core)
implementation(libs.jackson.databind)

implementation(platform(libs.vertx.bom))
implementation(libs.vertx.core)
}

jib {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
import dev.restate.e2e.services.singletoncounter.SingletonCounterGrpc;
import dev.restate.e2e.services.upgradetest.UpgradeTestService;
import dev.restate.e2e.services.upgradetest.UpgradeTestServiceGrpc;
import dev.restate.sdk.vertx.RestateHttpEndpointBuilder;
import io.vertx.core.Vertx;
import dev.restate.sdk.http.vertx.RestateHttpEndpointBuilder;
import java.util.Objects;

public class Main {
Expand All @@ -32,8 +31,7 @@ public static void main(String[] args) {
System.getenv("SERVICES"),
"SERVICES env variable needs to specify which service to run.");

RestateHttpEndpointBuilder restateHttpEndpointBuilder =
RestateHttpEndpointBuilder.builder(Vertx.vertx());
RestateHttpEndpointBuilder restateHttpEndpointBuilder = RestateHttpEndpointBuilder.builder();
for (String service : env.split(",")) {
switch (service.trim()) {
case ListServiceGrpc.SERVICE_NAME:
Expand Down
12 changes: 5 additions & 7 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ dependencyResolutionManagement {

// Libraries
library("restate-sdk-core", "dev.restate.sdk", "sdk-core").versionRef("restate")
library("restate-sdk-blocking", "dev.restate.sdk", "sdk-blocking").versionRef("restate")
library("restate-sdk-java-blocking", "dev.restate.sdk", "sdk-java-blocking")
.versionRef("restate")
library("restate-sdk-jackson", "dev.restate.sdk", "sdk-serde-jackson").versionRef("restate")
library("restate-sdk-vertx", "dev.restate.sdk", "sdk-vertx").versionRef("restate")
library("restate-sdk-http-vertx", "dev.restate.sdk", "sdk-http-vertx").versionRef("restate")

library("protoc", "com.google.protobuf", "protoc").versionRef("protobuf")
library("protobuf-java", "com.google.protobuf", "protobuf-java").versionRef("protobuf")
Expand All @@ -56,9 +57,6 @@ dependencyResolutionManagement {
// Replace javax.annotations-api with tomcat annotations
library("javax-annotation-api", "org.apache.tomcat", "annotations-api").version("6.0.53")

library("vertx-bom", "io.vertx:vertx-stack-depchain:4.4.5")
library("vertx-core", "io.vertx", "vertx-core").withoutVersion()

library("jackson-bom", "com.fasterxml.jackson", "jackson-bom").versionRef("jackson")
library("jackson-core", "com.fasterxml.jackson.core", "jackson-core").withoutVersion()
library("jackson-databind", "com.fasterxml.jackson.core", "jackson-databind").withoutVersion()
Expand Down Expand Up @@ -95,8 +93,8 @@ if (!System.getenv("JAVA_SDK_LOCAL_BUILD").isNullOrEmpty()) {
includeBuild("../sdk-java") {
dependencySubstitution {
substitute(module("dev.restate.sdk:sdk-core")).using(project(":sdk-core"))
substitute(module("dev.restate.sdk:sdk-blocking")).using(project(":sdk-blocking"))
substitute(module("dev.restate.sdk:sdk-vertx")).using(project(":sdk-vertx"))
substitute(module("dev.restate.sdk:sdk-java-blocking")).using(project(":sdk-java-blocking"))
substitute(module("dev.restate.sdk:sdk-http-vertx")).using(project(":sdk-http-vertx"))
substitute(module("dev.restate.sdk:sdk-serde-jackson")).using(project(":sdk-serde-jackson"))
}
}
Expand Down

0 comments on commit 7d03797

Please sign in to comment.