-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#43 - fixing application.properties files not overloading with multim…
…odule setup * #43 - fixing application.properties files not overloading with multimodule setup * #43 - moving liquibase files * #43 moving to yaml properties files, leveraging include in main application.yaml * #39 making module names uniform
- Loading branch information
1 parent
9a74570
commit 91b6159
Showing
21 changed files
with
63 additions
and
44 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
management: | ||
endpoints: | ||
web: | ||
exposure: | ||
include: prometheus,health | ||
|
||
spring: | ||
config: | ||
import: | ||
- trademodule.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
trade-module/src/main/java/io/edpn/backend/trade/configuration/PropertyConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package io.edpn.backend.trade.configuration; | ||
|
||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration("TradeModulePropertyConfig") | ||
public class PropertyConfig { | ||
} |
10 changes: 0 additions & 10 deletions
10
trade-module/src/main/resources/application-local.properties
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
trade-module/src/main/resources/db/changelog/changelog-master.xml
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions
22
trade-module/src/main/resources/db/trademodule/changelog/trademodule-changelog.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> | ||
|
||
<include file="/db/trademodule/changelog/create_system_table.xml"/> | ||
<include file="/db/trademodule/changelog/create_commodity_table.xml"/> | ||
<include file="/db/trademodule/changelog/create_station_table.xml"/> | ||
<include file="/db/trademodule/changelog/create_market_datum_table.xml"/> | ||
<include file="/db/trademodule/changelog/add_foreign_key_indexes.xml"/> | ||
<include file="/db/trademodule/changelog/add_commodity_market_view_query_performance_indexes.xml"/> | ||
<include file="/db/trademodule/changelog/add_unique_indexes.xml"/> | ||
<include file="/db/trademodule/changelog/create_request_data_message_table.xml"/> | ||
<include file="/db/trademodule/changelog/add_timestamp_market_datum_table.xml"/> | ||
|
||
<!-- views always last as they might depend on new columns --> | ||
<include file="/db/trademodule/changelog/create_commodity_market_info_view.xml"/> | ||
<include file="/db/trademodule/changelog/create_latest_market_data_view.xml"/> | ||
|
||
</databaseChangeLog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
spring: | ||
datasource: | ||
url: jdbc:postgresql://localhost:54321/trademodule | ||
username: edpn_trademodule | ||
password: MSDVq372rNk3AwRq | ||
|
||
kafka: | ||
bootstrap-servers: localhost:9092 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
spring: | ||
liquibase: | ||
enabled: true | ||
change-log: classpath:db/trademodule/changelog/trademodule-changelog.xml | ||
|
||
datasource: | ||
url: ${TRADEMODULE_DB_URL} | ||
username: ${TRADEMODULE_DB_USERNAME} | ||
password: ${TRADEMODULE_DB_PASSWORD} | ||
driver-class-name: org.postgresql.Driver | ||
|
||
kafka: | ||
bootstrap-servers: ${KAFKA_URL} | ||
consumer: | ||
value-deserializer: org.springframework.kafka.support.serializer.JsonDeserializer |