Skip to content

Commit

Permalink
Align bookshop with CAP Java archetype (#440)
Browse files Browse the repository at this point in the history
Co-authored-by: Marc Becker <[email protected]>
  • Loading branch information
mofterdinger and beckermarc authored Feb 12, 2025
1 parent fac44ef commit 43a9801
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
gen/
edmx/
schema.sql
schema-nomocks.sql
schema-h2.sql
default-env.json
openapi.json
.env
Expand Down
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@
</dependencyManagement>

<build>
<pluginManagement>
<plugins>
<!-- MAKE CDS PLUGIN RUNNABLE FROM ROOT -->
<plugin>
<groupId>com.sap.cds</groupId>
<artifactId>cds-maven-plugin</artifactId>
<version>${cds.services.version}</version>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<!-- JAVA VERSION -->
<plugin>
Expand Down
4 changes: 1 addition & 3 deletions srv/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@
<plugin>
<groupId>com.sap.cds</groupId>
<artifactId>cds-maven-plugin</artifactId>
<version>${cds.services.version}</version>
<executions>
<execution>
<id>cds.clean</id>
Expand Down Expand Up @@ -220,8 +219,7 @@
<configuration>
<commands>
<command>build --for java</command>
<command>deploy --to h2 --with-mocks --dry --out "${project.basedir}/src/main/resources/schema.sql"</command>
<command>deploy --to h2 --dry --out "${project.basedir}/src/main/resources/schema-nomocks.sql"</command>
<command>deploy --to h2 --with-mocks --dry --out "${project.basedir}/src/main/resources/schema-h2.sql"</command>
<command>compile srv/cat-service.cds -2 openapi --openapi:url /api/browse &gt;
"${project.basedir}/src/main/resources/swagger/openapi.json"</command>
</commands>
Expand Down
2 changes: 1 addition & 1 deletion srv/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ management:
---
spring:
config.activate.on-profile: cloud
sql.init.schema-locations: "classpath:schema-nomocks.sql"
cds:
sql.hana.search:
fuzzy: true
Expand Down Expand Up @@ -128,6 +127,7 @@ cds:
---
spring:
config.activate.on-profile: default
sql.init.platform: h2
cds:
data-source:
auto-config.enabled: false

0 comments on commit 43a9801

Please sign in to comment.