mirror of https://github.com/dapr/java-sdk.git
Fix release 1.13.0-rc-1 (#1152)
This commit is contained in:
parent
d9c9a8329c
commit
7798360cd8
|
|
@ -4,20 +4,28 @@ set -uex
|
|||
|
||||
DAPR_JAVA_SDK_VERSION=$1
|
||||
|
||||
# Alpha artifacts of the sdk tracks the regular SDK minor and patch versions, just not the major.
|
||||
# Replaces the SDK major version to 0 for alpha artifacts.
|
||||
DAPR_JAVA_SDK_ALPHA_VERSION=`echo $DAPR_JAVA_SDK_VERSION | sed 's/^[0-9]*\./0./'`
|
||||
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
sed -i bak "s/<version>.*<\/version>\$/<version>${DAPR_JAVA_SDK_VERSION}<\/version>/g" README.md
|
||||
sed -i bak "s/compile('io.dapr:\(.*\):.*')/compile('io.dapr:\\1:${DAPR_JAVA_SDK_VERSION}')/g" README.md
|
||||
sed -i bak "s/<version>.*<\/version>\$/<version>${DAPR_JAVA_SDK_VERSION}<\/version>/g" daprdocs/content/en/java-sdk-docs/_index.md
|
||||
sed -i bak "s/compile('io.dapr:\(.*\):.*')/compile('io.dapr:\\1:${DAPR_JAVA_SDK_VERSION}')/g" daprdocs/content/en/java-sdk-docs/_index.md
|
||||
sed -i bak "s/<version>.*<\/version>\$/<version>${DAPR_JAVA_SDK_ALPHA_VERSION}<\/version>/g" daprdocs/content/en/java-sdk-docs/spring-boot/_index.md
|
||||
rm README.mdbak
|
||||
else
|
||||
sed -i "s/<version>.*<\/version>\$/<version>${DAPR_JAVA_SDK_VERSION}<\/version>/g" README.md
|
||||
sed -i "s/compile('io.dapr:\(.*\):.*')/compile('io.dapr:\\1:${DAPR_JAVA_SDK_VERSION}')/g" README.md
|
||||
sed -i "s/<version>.*<\/version>\$/<version>${DAPR_JAVA_SDK_VERSION}<\/version>/g" daprdocs/content/en/java-sdk-docs/_index.md
|
||||
sed -i "s/compile('io.dapr:\(.*\):.*')/compile('io.dapr:\\1:${DAPR_JAVA_SDK_VERSION}')/g" daprdocs/content/en/java-sdk-docs/_index.md
|
||||
sed -i "s/<version>.*<\/version>\$/<version>${DAPR_JAVA_SDK_ALPHA_VERSION}<\/version>/g" daprdocs/content/en/java-sdk-docs/spring-boot/_index.md
|
||||
fi
|
||||
|
||||
rm -rf docs
|
||||
mvn -Dmaven.test.skip=false -Djacoco.skip=true clean install
|
||||
mvn site-deploy
|
||||
rm -f daprdocs/content/en/java-sdk-docs/_index.mdbak || echo
|
||||
rm -f daprdocs/content/en/java-sdk-docs/spring-boot/_index.md/_index.mdbak || echo
|
||||
|
||||
rm -rf docs
|
||||
./mvnw -Dmaven.test.skip=false -Djacoco.skip=true clean install
|
||||
./mvnw site-deploy
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ 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
|
||||
|
||||
|
|
@ -23,4 +24,7 @@ mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -f sdk-workflows/pom.
|
|||
# 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 -f dapr-spring/pom.xml
|
||||
|
||||
git clean -f
|
||||
|
|
|
|||
|
|
@ -0,0 +1,34 @@
|
|||
name: Validate Javadocs Generation
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- release-*
|
||||
tags:
|
||||
- v*
|
||||
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- release-*
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: "Validate Javadocs generation"
|
||||
runs-on: linux-arm64-latest-4-cores
|
||||
timeout-minutes: 30
|
||||
env:
|
||||
JDK_VER: 17
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up OpenJDK ${{ env.JDK_VER }}
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: ${{ env.JDK_VER }}
|
||||
- name: Install jars
|
||||
run: ./mvnw install -q -B -DskipTests
|
||||
- name: Validate Java docs generation
|
||||
run: ./mvnw site-deploy
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
<parent>
|
||||
<groupId>io.dapr.spring</groupId>
|
||||
<artifactId>dapr-spring-parent</artifactId>
|
||||
<version>0.13.0-SNAPSHOT</version>
|
||||
<version>0.13.0-rc-1</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>dapr-spring-boot-autoconfigure</artifactId>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<parent>
|
||||
<groupId>io.dapr.spring</groupId>
|
||||
<artifactId>dapr-spring-parent</artifactId>
|
||||
<version>0.13.0-SNAPSHOT</version>
|
||||
<version>0.13.0-rc-1</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<parent>
|
||||
<groupId>io.dapr.spring</groupId>
|
||||
<artifactId>dapr-spring-parent</artifactId>
|
||||
<version>0.13.0-SNAPSHOT</version>
|
||||
<version>0.13.0-rc-1</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<parent>
|
||||
<groupId>io.dapr.spring</groupId>
|
||||
<artifactId>dapr-spring-parent</artifactId>
|
||||
<version>0.13.0-SNAPSHOT</version>
|
||||
<version>0.13.0-rc-1</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>dapr-spring-boot-tests</artifactId>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<parent>
|
||||
<groupId>io.dapr.spring</groupId>
|
||||
<artifactId>dapr-spring-parent</artifactId>
|
||||
<version>0.13.0-SNAPSHOT</version>
|
||||
<version>0.13.0-rc-1</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>dapr-spring-data</artifactId>
|
||||
|
|
|
|||
|
|
@ -152,7 +152,8 @@ public class PostgreSQLDaprKeyValueAdapter extends AbstractDaprKeyValueAdapter {
|
|||
private String createSql(String sqlPattern, String keyspace, Object criteria) {
|
||||
String keyspaceFilter = getKeyspaceFilter(keyspace);
|
||||
|
||||
if (criteria instanceof DaprPredicate daprPredicate) {
|
||||
if (criteria instanceof DaprPredicate) {
|
||||
var daprPredicate = (DaprPredicate) criteria;
|
||||
String path = daprPredicate.getPath().toString();
|
||||
String pathWithOutType = String.format("'%s'", path.substring(path.indexOf(".") + 1));
|
||||
String value = String.format("'%s'", daprPredicate.getValue().toString());
|
||||
|
|
|
|||
|
|
@ -46,7 +46,9 @@ class DaprPredicateBuilder {
|
|||
public Predicate<Object> isEqualTo(Object value) {
|
||||
return new DaprPredicate(part.getProperty(), value, o -> {
|
||||
if (!ObjectUtils.nullSafeEquals(Part.IgnoreCaseType.NEVER, part.shouldIgnoreCase())) {
|
||||
if (o instanceof String s1 && value instanceof String s2) {
|
||||
if ((o instanceof String) && (value instanceof String)) {
|
||||
var s1 = (String)o;
|
||||
var s2 = (String)value;
|
||||
return s1.equalsIgnoreCase(s2);
|
||||
}
|
||||
}
|
||||
|
|
@ -85,7 +87,8 @@ class DaprPredicateBuilder {
|
|||
return ObjectUtils.nullSafeEquals(o, value);
|
||||
}
|
||||
|
||||
if (value instanceof Pattern pattern) {
|
||||
if (value instanceof Pattern) {
|
||||
var pattern = (Pattern)value;
|
||||
return pattern.matcher(o.toString()).find();
|
||||
}
|
||||
|
||||
|
|
@ -95,8 +98,10 @@ class DaprPredicateBuilder {
|
|||
|
||||
public Predicate<Object> in(Object value) {
|
||||
return new DaprPredicate(part.getProperty(), value, o -> {
|
||||
if (value instanceof Collection<?> collection) {
|
||||
if (o instanceof Collection<?> subSet) {
|
||||
if (value instanceof Collection<?>) {
|
||||
var collection = (Collection<?>)value;
|
||||
if (o instanceof Collection<?>) {
|
||||
var subSet = (Collection<?>)o;
|
||||
return collection.containsAll(subSet);
|
||||
}
|
||||
|
||||
|
|
@ -117,7 +122,8 @@ class DaprPredicateBuilder {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (o instanceof Collection<?> collection) {
|
||||
if (o instanceof Collection<?>) {
|
||||
var collection = (Collection<?>)o;
|
||||
return collection.contains(value);
|
||||
}
|
||||
|
||||
|
|
@ -125,7 +131,8 @@ class DaprPredicateBuilder {
|
|||
return ObjectUtils.containsElement(ObjectUtils.toObjectArray(o), value);
|
||||
}
|
||||
|
||||
if (o instanceof Map<?, ?> map) {
|
||||
if (o instanceof Map<?, ?>) {
|
||||
var map = (Map<?, ?>)o;
|
||||
return map.containsValue(value);
|
||||
}
|
||||
|
||||
|
|
@ -145,9 +152,10 @@ class DaprPredicateBuilder {
|
|||
|
||||
public Predicate<Object> startsWith(Object value) {
|
||||
return new DaprPredicate(part.getProperty(), value, o -> {
|
||||
if (!(o instanceof String s)) {
|
||||
if (!(o instanceof String)) {
|
||||
return false;
|
||||
}
|
||||
var s = (String)o;
|
||||
|
||||
if (ObjectUtils.nullSafeEquals(Part.IgnoreCaseType.NEVER, part.shouldIgnoreCase())) {
|
||||
return s.startsWith(value.toString());
|
||||
|
|
@ -159,10 +167,11 @@ class DaprPredicateBuilder {
|
|||
|
||||
public Predicate<Object> endsWith(Object value) {
|
||||
return new DaprPredicate(part.getProperty(), value, o -> {
|
||||
if (!(o instanceof String s)) {
|
||||
if (!(o instanceof String)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var s = (String)o;
|
||||
if (ObjectUtils.nullSafeEquals(Part.IgnoreCaseType.NEVER, part.shouldIgnoreCase())) {
|
||||
return s.endsWith(value.toString());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<parent>
|
||||
<groupId>io.dapr.spring</groupId>
|
||||
<artifactId>dapr-spring-parent</artifactId>
|
||||
<version>0.13.0-SNAPSHOT</version>
|
||||
<version>0.13.0-rc-1</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>dapr-spring-messaging</artifactId>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<groupId>io.dapr.spring</groupId>
|
||||
<artifactId>dapr-spring-parent</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>0.13.0-SNAPSHOT</version>
|
||||
<version>0.13.0-rc-1</version>
|
||||
<name>dapr-spring-parent</name>
|
||||
<description>SDK extension for Spring and Spring Boot</description>
|
||||
|
||||
|
|
@ -28,9 +28,9 @@
|
|||
|
||||
<properties>
|
||||
<springboot.version>3.2.6</springboot.version>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<maven.compiler.release>17</maven.compiler.release>
|
||||
<maven.compiler.source>11</maven.compiler.source>
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
<maven.compiler.release>11</maven.compiler.release>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
|
|
@ -108,7 +108,7 @@
|
|||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>3.7.0</version>
|
||||
<version>3.2.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-javadocs</id>
|
||||
|
|
|
|||
2
pom.xml
2
pom.xml
|
|
@ -18,7 +18,7 @@
|
|||
<protobuf.version>3.25.0</protobuf.version>
|
||||
<protocCommand>protoc</protocCommand>
|
||||
<dapr.proto.baseurl>https://raw.githubusercontent.com/dapr/dapr/v1.14.4/dapr/proto</dapr.proto.baseurl>
|
||||
<dapr.sdk.version>1.13.0-SNAPSHOT</dapr.sdk.version>
|
||||
<dapr.sdk.version>1.13.0-rc-1</dapr.sdk.version>
|
||||
<dapr.sdk.alpha.version>0.13.0-rc-1</dapr.sdk.alpha.version>
|
||||
<os-maven-plugin.version>1.7.1</os-maven-plugin.version>
|
||||
<maven-dependency-plugin.version>3.1.1</maven-dependency-plugin.version>
|
||||
|
|
|
|||
Loading…
Reference in New Issue