Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
aws-lambda-core = 'com.amazonaws:aws-lambda-java-core:1.2.3'
aws-lambda-events = 'com.amazonaws:aws-lambda-java-events:3.11.5'
google-findbugs-jsr305 = 'com.google.code.findbugs:jsr305:3.0.2'
handlebars = 'com.github.jknack:handlebars:4.3.1'
handlebars = 'com.github.jknack:handlebars:4.5.0'
jspecify = 'org.jspecify:jspecify:1.0.0'
jwt = 'com.nimbusds:nimbus-jose-jwt:9.47'
mutiny = 'io.smallrye.reactive:mutiny:2.7.0'
Expand Down
6 changes: 5 additions & 1 deletion sdk-api-gen-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ description = "Restate SDK API Gen Common"
dependencies {
compileOnly(libs.jspecify)

api(libs.handlebars)
api(libs.handlebars) {
// exclude nashorn-core, since it is not license compliant and is only
// needed for javascript in templates which we don't use.
exclude(group = "org.openjdk.nashorn", module = "nashorn-core")
}
api(project(":sdk-common"))

// We need it to silence the slf4j warning (coming from handlebars)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import com.github.jknack.handlebars.Template;
import com.github.jknack.handlebars.context.FieldValueResolver;
import com.github.jknack.handlebars.helper.StringHelpers;
import com.github.jknack.handlebars.internal.text.StringEscapeUtils;
import com.github.jknack.handlebars.io.TemplateLoader;
import dev.restate.common.function.ThrowingFunction;
import dev.restate.sdk.endpoint.definition.ServiceType;
Expand All @@ -26,6 +25,7 @@
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import org.apache.commons.text.StringEscapeUtils;

public class HandlebarsTemplateEngine {

Expand Down