Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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