Skip to content

Commit 43a9801

Browse files
Align bookshop with CAP Java archetype (#440)
Co-authored-by: Marc Becker <[email protected]>
1 parent fac44ef commit 43a9801

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
gen/
22
edmx/
3-
schema.sql
4-
schema-nomocks.sql
3+
schema-h2.sql
54
default-env.json
65
openapi.json
76
.env

pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@
6767
</dependencyManagement>
6868

6969
<build>
70+
<pluginManagement>
71+
<plugins>
72+
<!-- MAKE CDS PLUGIN RUNNABLE FROM ROOT -->
73+
<plugin>
74+
<groupId>com.sap.cds</groupId>
75+
<artifactId>cds-maven-plugin</artifactId>
76+
<version>${cds.services.version}</version>
77+
</plugin>
78+
</plugins>
79+
</pluginManagement>
80+
7081
<plugins>
7182
<!-- JAVA VERSION -->
7283
<plugin>

srv/pom.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@
179179
<plugin>
180180
<groupId>com.sap.cds</groupId>
181181
<artifactId>cds-maven-plugin</artifactId>
182-
<version>${cds.services.version}</version>
183182
<executions>
184183
<execution>
185184
<id>cds.clean</id>
@@ -220,8 +219,7 @@
220219
<configuration>
221220
<commands>
222221
<command>build --for java</command>
223-
<command>deploy --to h2 --with-mocks --dry --out "${project.basedir}/src/main/resources/schema.sql"</command>
224-
<command>deploy --to h2 --dry --out "${project.basedir}/src/main/resources/schema-nomocks.sql"</command>
222+
<command>deploy --to h2 --with-mocks --dry --out "${project.basedir}/src/main/resources/schema-h2.sql"</command>
225223
<command>compile srv/cat-service.cds -2 openapi --openapi:url /api/browse &gt;
226224
"${project.basedir}/src/main/resources/swagger/openapi.json"</command>
227225
</commands>

srv/src/main/resources/application.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ management:
4444
---
4545
spring:
4646
config.activate.on-profile: cloud
47-
sql.init.schema-locations: "classpath:schema-nomocks.sql"
4847
cds:
4948
sql.hana.search:
5049
fuzzy: true
@@ -128,6 +127,7 @@ cds:
128127
---
129128
spring:
130129
config.activate.on-profile: default
130+
sql.init.platform: h2
131131
cds:
132132
data-source:
133133
auto-config.enabled: false

0 commit comments

Comments
 (0)