Skip to content

Commit 8220bc8

Browse files
authored
Update CDS Services to 1.29.0 (#175)
- Use H2 v2 with new h2 dialect provided by CDS Compiler - Use new name java instead of old java-cf for build tasks - Update dependencies
1 parent d7b35a5 commit 8220bc8

5 files changed

Lines changed: 13 additions & 25 deletions

File tree

.cdsrc.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"target": ".",
44
"tasks": [
55
{
6-
"for": "java-cf"
6+
"for": "java"
77
},
88
{
99
"for": "mtx",
@@ -17,8 +17,5 @@
1717
},
1818
"hana": {
1919
"deploy-format": "hdbtable"
20-
},
21-
"sql": {
22-
"dialect": "plain"
2320
}
2421
}

mtx-sidecar/.cdsrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"for": "hana"
99
},
1010
{
11-
"for": "java-cf"
11+
"for": "java"
1212
}
1313
]
1414
},

pom.xml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717
<!-- DEPENDENCIES VERSION -->
1818
<jdk.version>1.8</jdk.version>
19-
<cds.services.version>1.28.1</cds.services.version>
20-
<spring.boot.version>2.7.4</spring.boot.version>
21-
<cloud.sdk.version>3.75.0</cloud.sdk.version>
19+
<cds.services.version>1.29.0</cds.services.version>
20+
<spring.boot.version>2.7.5</spring.boot.version>
21+
<cloud.sdk.version>4.0.0</cloud.sdk.version>
2222
<xsuaa.version>2.13.3</xsuaa.version>
23-
<cf-java-logging-support.version>3.6.2</cf-java-logging-support.version>
24-
<cds.install-cdsdk.version>^6</cds.install-cdsdk.version>
23+
<cf-java-logging-support.version>3.6.3</cf-java-logging-support.version>
24+
<cds.install-cdsdk.version>6.3.0</cds.install-cdsdk.version>
2525
</properties>
2626

2727
<modules>
@@ -65,13 +65,6 @@
6565
<type>pom</type>
6666
<scope>import</scope>
6767
</dependency>
68-
69-
<!-- pin H2 v1 -->
70-
<dependency>
71-
<groupId>com.h2database</groupId>
72-
<artifactId>h2</artifactId>
73-
<version>1.4.200</version>
74-
</dependency>
7568
</dependencies>
7669
</dependencyManagement>
7770

srv/external/API_BUSINESS_PARTNER.csn

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,8 +2135,7 @@
21352135
},
21362136
"CheckPaidDurationInDays": {
21372137
"type": "cds.Decimal",
2138-
"precision": 3,
2139-
"scale": 0
2138+
"precision": 3
21402139
},
21412140
"Currency": {
21422141
"type": "cds.String",
@@ -2378,8 +2377,7 @@
23782377
},
23792378
"MaterialPlannedDeliveryDurn": {
23802379
"type": "cds.Decimal",
2381-
"precision": 3,
2382-
"scale": 0
2380+
"precision": 3
23832381
},
23842382
"MinimumOrderAmount": {
23852383
"type": "cds.Decimal",
@@ -2501,4 +2499,4 @@
25012499
}
25022500
}
25032501
}
2504-
}
2502+
}

srv/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@
178178
</goals>
179179
<configuration>
180180
<commands>
181-
<command>build --for java-cf</command>
182-
<command>deploy --to sql --with-mocks --dry >
181+
<command>build --for java</command>
182+
<command>deploy --to h2 --with-mocks --dry >
183183
${project.basedir}/src/main/resources/schema.sql</command>
184-
<command>deploy --to sql --dry >
184+
<command>deploy --to h2 --dry >
185185
${project.basedir}/src/main/resources/schema-nomocks.sql</command>
186186
<command>compile srv/cat-service.cds -2 openapi --openapi:url /api/browse >
187187
${project.basedir}/src/main/resources/swagger/openapi.json</command>

0 commit comments

Comments
 (0)