dapr / dapr/java-sdk

Use non-shared netty dependency for Spring Boot integration

Open
#1,135 4 comments 0 reactions 0 assignees View on GitHub
kind/bug
Dominant language
Java
Stars
300
Forks
230
Avg merge
1d 20h
Merged PRs (30d)
4

Description

## Expected Behavior

Users should be able to use native compilation (with GraalVM) for applications using the Dapr Java Spring Boot integration.

## Actual Behavior

The netty-shaded library doesn't work with native compilation.

## Steps to Reproduce the Problem

Create a Spring Boot application, add the Spring Boot Dapr integration and try to compile a native image:

```

io.dapr.spring
dapr-spring-boot-starter
${dapr-java-sdk.alpha-version}

```

## Workaround

```

io.dapr.spring
dapr-spring-boot-starter
${dapr-java-sdk.alpha-version}


io.grpc
grpc-netty-shaded

io.grpc
grpc-netty
${grpc.version}

```

You need to make sure that `${grpc.version}` matches with the one included by the Java Dapr SDK.

@artursouza can you give me some background about why we need the shaded version? Do you have anything against using the non-shaded version when integrating with Spring Boot?

## Release Note

RELEASE NOTE:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.