Skip to content

Commit

Permalink
Merge pull request #90 from folio-org/community-sprint-3-improve_pom
Browse files Browse the repository at this point in the history
Fix problems relating to the pom, the application.yaml, and openapi.yaml generation.
  • Loading branch information
kaladay authored Mar 21, 2024
2 parents 5dd40ed + f8584e0 commit e241de1
Show file tree
Hide file tree
Showing 4 changed files with 12,280 additions and 517 deletions.
21 changes: 12 additions & 9 deletions service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -332,21 +332,23 @@
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<skip>false</skip>
<jvmArguments>-Dspring.application.admin.enabled=true -Dfolio.tenant.validation=false -Dheader.validation.x-okapi-tenant.exclude.base-paths=/</jvmArguments>
<arguments>
<argument>--server.port=${openapi.server.port}</argument>
</arguments>
<systemPropertyVariables>
<server.port>${openapi.server.port}</server.port>
<spring.sql.init.platform>h2</spring.sql.init.platform>
<spring.datasource.driverClassName>org.h2.Driver</spring.datasource.driverClassName>
<spring.datasource.url>jdbc:h2:./target/mod-workflow;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</spring.datasource.url>
<spring.jpa.database-platform>org.hibernate.dialect.H2Dialect</spring.jpa.database-platform>
<spring.jpa.hibernate.ddl-auto>create-drop</spring.jpa.hibernate.ddl-auto>
<!--The reason for this failing is unknown, for now postgresql can be used.-->
<!--<spring.sql.init.platform>h2</spring.sql.init.platform>-->
<!--<spring.datasource.driverClassName>org.h2.Driver</spring.datasource.driverClassName>-->
<!--<spring.datasource.url>jdbc:h2:./target/mod-workflow;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</spring.datasource.url>-->
<!--<spring.jpa.database-platform>org.hibernate.dialect.H2Dialect</spring.jpa.database-platform>-->
<!--<spring.jpa.hibernate.ddl-auto>create-drop</spring.jpa.hibernate.ddl-auto>-->
</systemPropertyVariables>
</configuration>
<executions>
<execution>
<id>repackage</id>
<id>openapi-repackage</id>
<goals>
<goal>repackage</goal>
</goals>
Expand All @@ -355,13 +357,13 @@
</configuration>
</execution>
<execution>
<id>pre-integration-test</id>
<id>openapi-repackage-start</id>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>post-integration-test</id>
<id>openapi-repackage-stop</id>
<goals>
<goal>stop</goal>
</goals>
Expand All @@ -373,13 +375,14 @@
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-maven-plugin</artifactId>
<configuration>
<skip>false</skip>
<apiDocsUrl>http://localhost:${openapi.server.port}/api-docs.yaml</apiDocsUrl>
<outputFileName>openapi.yaml</outputFileName>
<outputDir>src/main/resources/</outputDir>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<id>openapi-generate-api</id>
<goals>
<goal>generate</goal>
</goals>
Expand Down
3 changes: 3 additions & 0 deletions service/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ event:
queue:
name: event.queue

folio:
tenant.validation: false

tenant:
header-name: X-Okapi-Tenant
force-tenant: false
Expand Down
Loading

0 comments on commit e241de1

Please sign in to comment.