diff --git a/.gitignore b/.gitignore
index a1ecf03..ad3ba30 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,7 +3,6 @@ target/
#configs
config.service.ts
config.json
-*.properties
#other
.springBeans
@@ -13,6 +12,7 @@ hs_err_pid7608.log
.classpath
/.sts4-cache
/logs
+.idea
# Properties
-src/main/environment/104_test.properties
\ No newline at end of file
+src/main/environment/104_local.properties
diff --git a/.java-version b/.java-version
new file mode 100644
index 0000000..6259340
--- /dev/null
+++ b/.java-version
@@ -0,0 +1 @@
+1.8
diff --git a/pom.xml b/pom.xml
index 9491f22..0a2bddc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
104api-v1.0
${ENV_VAR}
target/classes/application.properties
- src/main/environment/104_${environment}.properties
+ target/classes/104_${environment}.properties
@@ -250,31 +250,69 @@
-
-
+ org.apache.maven.plugins
+ maven-resources-plugin
+
+
+ filter-resources
+ process-resources
+
+ resources
+
+
+ @
+ false
+
+
+ src/main/environment
+ true
+
+ 104_${environment}.properties
+
+
+
+
+
+
+
+
org.apache.maven.plugins
maven-antrun-plugin
- 1.8
-
process-resources
run
- properties-updated
+ merge-properties
- concatinating properties file ${target-properties} and
- ${source-properties}
+
+ concatenating properties file ${target-properties} and
+ ${source-properties}
+
+ force="yes">
+
+ process-resources
+
+ run
+
+ clean-property-files
+
+
+
+
+
+
+
+
@@ -309,7 +347,7 @@
104api-v1.0
target/classes/application.properties
- src/main/environment/104_${environment}.properties
+ target/classes/104_${environment}.properties
104api-v1.0
diff --git a/src/main/environment/104_ci.properties b/src/main/environment/104_ci.properties
new file mode 100644
index 0000000..1994aab
--- /dev/null
+++ b/src/main/environment/104_ci.properties
@@ -0,0 +1,19 @@
+# local env
+# DB Connections
+## Primary db
+spring.datasource.url=@env.DATABASE_URL@
+spring.datasource.username=@env.DATABASE_USERNAME@
+spring.datasource.password=@env.DATABASE_PASSWORD@
+spring.datasource.driver-class-name=com.mysql.jdbc.Driver
+
+secondary.datasource.username=@env.REPORTING_DATABASE_USERNAME@
+secondary.datasource.password=@env.REPORTING_DATABASE_PASSWORD@
+secondary.datasource.url=@env.REPORTING_DATABASE_URL@
+secondary.datasource.driver-class-name=com.mysql.jdbc.Driver
+
+# Common Config
+common-url=@env.COMMON_API_BASE_URL@
+
+### Redis IP
+spring.redis.host=localhost
+
diff --git a/src/main/environment/104_local.properties b/src/main/environment/104_example.properties
similarity index 100%
rename from src/main/environment/104_local.properties
rename to src/main/environment/104_example.properties
diff --git a/src/main/environment/104_uat.propertie b/src/main/environment/104_uat.properties
similarity index 100%
rename from src/main/environment/104_uat.propertie
rename to src/main/environment/104_uat.properties