Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
3e367ec
process deps too for dapr-spring (#1503)
cicoyle Aug 15, 2025
acf505f
Use camelCase on properties (#1470)
mcruzdev Aug 16, 2025
72bad12
fix script (#1506)
cicoyle Aug 18, 2025
bbbcd5a
add support for custom status (#1505)
salaboy Aug 20, 2025
da628e1
try 1.5.7 (#1487)
cicoyle Aug 21, 2025
5a9cb2e
rm protoc cmd from pom.xml (#1498)
cicoyle Aug 22, 2025
c46523f
feat: Support registering activities with custom name (#1431)
javier-aliaga Aug 26, 2025
b6bef6f
Bump codecov/codecov-action from 5.4.3 to 5.5.0 (#1513)
dependabot[bot] Aug 26, 2025
39f6db0
commit: Fix validate job (#1524)
javier-aliaga Aug 27, 2025
1f92931
chore: New task execution task id test (#1352) (#1526)
javier-aliaga Aug 28, 2025
7246eed
Bump actions/checkout from 4 to 5 (#1504)
dependabot[bot] Aug 28, 2025
8b69e6a
Improve CI runs (#1527)
javier-aliaga Aug 28, 2025
f8fcfd2
Fix CVEs (#1529)
javier-aliaga Aug 29, 2025
8a83b68
fix: Use correct snapshot url (#1530)
javier-aliaga Aug 29, 2025
1f496a8
Bump actions/setup-java from 4 to 5 (#1512)
dependabot[bot] Aug 30, 2025
bea7cf8
chore: Bump dapr version (#1539)
javier-aliaga Sep 1, 2025
7e7351b
Adding logger to WorkflowActivityContext (#1534)
artur-ciocanu Sep 1, 2025
a13b89d
Use notimestamp in Javadoc Plugin to disable timestamps in Javadocs (…
artur-ciocanu Sep 1, 2025
ae6cd3e
Feat Cross App CallActivity (#1468)
cicoyle Sep 2, 2025
ec9294b
Release 1.16.0-rc-1
dapr-bot Aug 15, 2025
87ded7b
process deps too for dapr-spring (#1502)
cicoyle Aug 15, 2025
d72a098
Merge branch 'release-1.16' into master-to-1.16
javier-aliaga Sep 2, 2025
84bd6a5
chore: Alpha components to stable
javier-aliaga Sep 3, 2025
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
17 changes: 2 additions & 15 deletions .github/scripts/update_sdk_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,12 @@ DAPR_JAVA_SDK_VERSION=$1
DAPR_JAVA_SDK_ALPHA_VERSION=`echo $DAPR_JAVA_SDK_VERSION | sed 's/^[0-9]*\./0./'`

mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_VERSION
mvn versions:set-property -Dproperty=dapr.sdk.alpha.version -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION

mvn versions:set-property -Dproperty=dapr.sdk.version -DnewVersion=$DAPR_JAVA_SDK_VERSION
mvn versions:set-property -Dproperty=dapr.sdk.version -DnewVersion=$DAPR_JAVA_SDK_VERSION -f sdk-tests/pom.xml
mvn versions:set-property -Dproperty=dapr.sdk.alpha.version -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -f sdk-tests/pom.xml
mvn versions:set-property -Dproperty=dapr.sdk.alpha.version -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION

###################
# Alpha artifacts #
###################

# sdk-workflows
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -f sdk-workflows/pom.xml

# testcontainers-dapr
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -f testcontainers-dapr/pom.xml

# dapr-spring
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -DprocessDependencies=true -f dapr-spring/pom.xml

# spring-boot-examples
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -f spring-boot-examples/pom.xml

git clean -f
2 changes: 1 addition & 1 deletion .github/workflows/automerge-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Install dependencies
run: pip install PyGithub
- name: Automerge and update
Expand Down
71 changes: 40 additions & 31 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,35 @@ on:
- release-*

jobs:
test:
name: "Unit tests"
runs-on: ubuntu-latest
timeout-minutes: 30
continue-on-error: false
env:
JDK_VER: 17
steps:
- uses: actions/checkout@v5
- name: Set up OpenJDK ${{ env.JDK_VER }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ env.JDK_VER }}
- name: Run tests
run: ./mvnw clean install -B -q
- name: Codecov
uses: codecov/[email protected]
- name: Upload test report for sdk
uses: actions/upload-artifact@v4
with:
name: test-dapr-java-sdk-jdk${{ env.JDK_VER }}
path: sdk/target/jacoco-report/
- name: Upload test report for sdk-actors
uses: actions/upload-artifact@v4
with:
name: report-dapr-java-sdk-actors-jdk${{ env.JDK_VER }}
path: sdk-actors/target/jacoco-report/

build:
name: "Build jdk:${{ matrix.java }} sb:${{ matrix.spring-boot-display-version }} exp:${{ matrix.experimental }}"
runs-on: ubuntu-latest
Expand All @@ -39,7 +68,7 @@ jobs:
GOPROXY: https://proxy.golang.org
JDK_VER: ${{ matrix.java }}
DAPR_CLI_VER: 1.15.0
DAPR_RUNTIME_VER: 1.16.0-rc.3
DAPR_RUNTIME_VER: 1.16.0-rc.5
DAPR_INSTALL_URL: https://github.com/raw/dapr/cli/v1.15.0/install/install.sh
DAPR_CLI_REF:
DAPR_REF:
Expand All @@ -50,9 +79,9 @@ jobs:
uses: docker/setup-docker-action@v4
- name: Check Docker version
run: docker version
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up OpenJDK ${{ env.JDK_VER }}
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ env.JDK_VER }}
Expand All @@ -64,14 +93,14 @@ jobs:
with:
go-version: ${{ env.GOVER }}
- name: Checkout Dapr CLI repo to override dapr command.
uses: actions/checkout@v4
uses: actions/checkout@v5
if: env.DAPR_CLI_REF != ''
with:
repository: dapr/cli
ref: ${{ env.DAPR_CLI_REF }}
path: cli
- name: Checkout Dapr repo to override daprd.
uses: actions/checkout@v4
uses: actions/checkout@v5
if: env.DAPR_REF != ''
with:
repository: dapr/dapr
Expand Down Expand Up @@ -112,33 +141,13 @@ jobs:
wget -q ${{ env.TOXIPROXY_URL }} -O /home/runner/.local/bin/toxiproxy-server
chmod +x /home/runner/.local/bin/toxiproxy-server
/home/runner/.local/bin/toxiproxy-server --version
- name: Clean up files
run: ./mvnw clean -B
- name: Build sdk
run: ./mvnw compile -B -q
- name: Unit tests
run: ./mvnw test # making it temporarily verbose.
env:
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
- name: Codecov
uses: codecov/[email protected]
- name: Install jars
run: ./mvnw install -q -B -DskipTests
- name: Clean up and install sdk
run: ./mvnw clean install -B -q -DskipTests
- name: Integration tests using spring boot version ${{ matrix.spring-boot-version }}
id: integration_tests
run: PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} ./mvnw -B -Pintegration-tests verify
run: PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} ./mvnw -B -Pintegration-tests dependency:copy-dependencies verify
env:
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
- name: Upload test report for sdk
uses: actions/upload-artifact@v4
with:
name: report-dapr-java-sdk-jdk${{ matrix.java }}-sb${{ matrix.spring-boot-version }}
path: sdk/target/jacoco-report/
- name: Upload test report for sdk-actors
uses: actions/upload-artifact@v4
with:
name: report-dapr-java-sdk-actors-jdk${{ matrix.java }}-sb${{ matrix.spring-boot-version }}
path: sdk-actors/target/jacoco-report/
- name: Upload failsafe test report for sdk-tests on failure
if: ${{ failure() && steps.integration_tests.conclusion == 'failure' }}
uses: actions/upload-artifact@v4
Expand All @@ -154,7 +163,7 @@ jobs:

publish:
runs-on: ubuntu-latest
needs: build
needs: [ build, test ]
timeout-minutes: 30
env:
JDK_VER: 17
Expand All @@ -163,9 +172,9 @@ jobs:
GPG_KEY: ${{ secrets.GPG_KEY }}
GPG_PWD: ${{ secrets.GPG_PWD }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up OpenJDK ${{ env.JDK_VER }}
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ env.JDK_VER }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ jobs:
JDK_VER: '17'
steps:
- name: Check out code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ secrets.DAPR_BOT_TOKEN }}
persist-credentials: false
- name: Set up OpenJDK ${{ env.JDK_VER }}
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ env.JDK_VER }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
FOSSA_API_KEY: b88e1f4287c3108c8751bf106fb46db6 # This is a push-only token that is safe to be exposed.
steps:
- name: "Checkout code"
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: "Run FOSSA Scan"
uses: fossas/[email protected] # Use a specific version if locking is preferred
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
env:
JDK_VER: 17
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up OpenJDK ${{ env.JDK_VER }}
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ env.JDK_VER }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ jobs:
GOPROXY: https://proxy.golang.org
JDK_VER: ${{ matrix.java }}
DAPR_CLI_VER: 1.15.0
DAPR_RUNTIME_VER: 1.16.0-rc.3
DAPR_RUNTIME_VER: 1.16.0-rc.5
DAPR_INSTALL_URL: https://github.com/raw/dapr/cli/v1.15.0/install/install.sh
DAPR_CLI_REF:
DAPR_REF:
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up OpenJDK ${{ env.JDK_VER }}
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ env.JDK_VER }}
Expand All @@ -62,14 +62,14 @@ jobs:
with:
go-version: ${{ env.GOVER }}
- name: Checkout Dapr CLI repo to override dapr command.
uses: actions/checkout@v4
uses: actions/checkout@v5
if: env.DAPR_CLI_REF != ''
with:
repository: dapr/cli
ref: ${{ env.DAPR_CLI_REF }}
path: cli
- name: Checkout Dapr repo to override daprd.
uses: actions/checkout@v4
uses: actions/checkout@v5
if: env.DAPR_REF != ''
with:
repository: dapr/dapr
Expand Down
2 changes: 1 addition & 1 deletion dapr-spring/dapr-spring-boot-autoconfigure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.dapr.spring</groupId>
<artifactId>dapr-spring-parent</artifactId>
<version>0.16.0-rc-1</version>
<version>1.16.0-rc-1</version>
</parent>

<artifactId>dapr-spring-boot-autoconfigure</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;

import java.util.Map;

import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
Expand Down Expand Up @@ -111,6 +109,18 @@ void shouldOverrideGrpcPortIfExists() {
verify(builder).withPropertyOverride(Properties.GRPC_PORT, String.valueOf(grpcPort));
}

@Test
@DisplayName("Should override API token if it exists")
void shouldOverrideApiTokenIfExists() {
String apiToken = "token";

when(connectionDetails.getApiToken()).thenReturn(apiToken);

configuration.daprClientBuilder(connectionDetails);

verify(builder).withPropertyOverride(Properties.API_TOKEN, apiToken);
}

@Test
@DisplayName("Should override HTTP endpoint in properties if it exists")
void shouldOverrideHttpEndpointInPropertiesIfExists() {
Expand Down Expand Up @@ -159,6 +169,18 @@ void shouldOverrideGrpcPortPropertiesIfExists() {
assertThat(result.getValue(Properties.GRPC_PORT)).isEqualTo(grpcPort);
}

@Test
@DisplayName("Should override API token in properties if it exists")
void shouldOverrideApiTokenPropertiesIfExists() {
String apiToken = "token";

when(connectionDetails.getApiToken()).thenReturn(apiToken);

Properties result = configuration.createPropertiesFromConnectionDetails(connectionDetails);

assertThat(result.getValue(Properties.API_TOKEN)).isEqualTo(apiToken);
}

private static class TestDaprClientAutoConfiguration extends DaprClientAutoConfiguration {

private final DaprClientBuilder daprClientBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,26 @@ public void shouldMapDaprClientProperties() {
});

});
}

@Test
@DisplayName("Should map DaprClient properties correctly (camelCase)")
public void shouldMapDaprClientPropertiesCamelCase() {
runner.withSystemProperties(
"dapr.client.httpEndpoint=http://localhost",
"dapr.client.httpPort=3500",
"dapr.client.grpcEndpoint=localhost",
"dapr.client.grpcPort=50001"
).run(context -> {
DaprClientProperties properties = context.getBean(DaprClientProperties.class);
SoftAssertions.assertSoftly(softly -> {
softly.assertThat(properties.getGrpcEndpoint()).isEqualTo("localhost");
softly.assertThat(properties.getHttpEndpoint()).isEqualTo("http://localhost");
softly.assertThat(properties.getHttpPort()).isEqualTo(3500);
softly.assertThat(properties.getGrpcPort()).isEqualTo(50001);
});

});
}

@EnableConfigurationProperties(DaprClientProperties.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.dapr.spring</groupId>
<artifactId>dapr-spring-parent</artifactId>
<version>0.16.0-rc-1</version>
<version>1.16.0-rc-1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.dapr.spring</groupId>
<artifactId>dapr-spring-parent</artifactId>
<version>0.16.0-rc-1</version>
<version>1.16.0-rc-1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion dapr-spring/dapr-spring-boot-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.dapr.spring</groupId>
<artifactId>dapr-spring-parent</artifactId>
<version>0.16.0-rc-1</version>
<version>1.16.0-rc-1</version>
</parent>

<artifactId>dapr-spring-boot-tests</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion dapr-spring/dapr-spring-data/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.dapr.spring</groupId>
<artifactId>dapr-spring-parent</artifactId>
<version>0.16.0-rc-1</version>
<version>1.16.0-rc-1</version>
</parent>

<artifactId>dapr-spring-data</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion dapr-spring/dapr-spring-messaging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.dapr.spring</groupId>
<artifactId>dapr-spring-parent</artifactId>
<version>0.16.0-rc-1</version>
<version>1.16.0-rc-1</version>
</parent>

<artifactId>dapr-spring-messaging</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion dapr-spring/dapr-spring-workflows/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.dapr.spring</groupId>
<artifactId>dapr-spring-parent</artifactId>
<version>0.16.0-rc-1</version>
<version>1.16.0-rc-1</version>
</parent>

<artifactId>dapr-spring-workflows</artifactId>
Expand Down
Loading
Loading