diff --git a/spring-boot-modules/spring-boot-environment/pom.xml b/spring-boot-modules/spring-boot-environment/pom.xml
index 4bdb35358c..9974d41f45 100644
--- a/spring-boot-modules/spring-boot-environment/pom.xml
+++ b/spring-boot-modules/spring-boot-environment/pom.xml
@@ -9,9 +9,10 @@
Demo project for Spring Boot
- com.baeldung.spring-boot-modules
- spring-boot-modules
- 1.0.0-SNAPSHOT
+ com.baeldung
+ parent-boot-3
+ 0.0.1-SNAPSHOT
+ ../../parent-boot-3
@@ -46,11 +47,6 @@
h2
runtime
-
- javax.persistence
- javax.persistence-api
- ${jpa.version}
-
com.google.guava
guava
@@ -96,6 +92,15 @@
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+ com.baeldung.environmentpostprocessor.PriceCalculationApplication
+
+
+
@@ -151,7 +156,6 @@
- 2.2
3.1.7
4.5.8
2021.0.0
diff --git a/spring-boot-modules/spring-boot-environment/src/main/resources/META-INF/spring.factories b/spring-boot-modules/spring-boot-environment/src/main/resources/META-INF/spring.factories
deleted file mode 100644
index c36b67f8d7..0000000000
--- a/spring-boot-modules/spring-boot-environment/src/main/resources/META-INF/spring.factories
+++ /dev/null
@@ -1,6 +0,0 @@
-org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
-com.baeldung.environmentpostprocessor.autoconfig.PriceCalculationAutoConfig
-
-org.springframework.boot.env.EnvironmentPostProcessor=\
-com.baeldung.environmentpostprocessor.PriceCalculationEnvironmentPostProcessor
-
diff --git a/spring-boot-modules/spring-boot-environment/src/main/resources/META-INF/spring/AutoConfiguration.imports b/spring-boot-modules/spring-boot-environment/src/main/resources/META-INF/spring/AutoConfiguration.imports
new file mode 100644
index 0000000000..350e2efa94
--- /dev/null
+++ b/spring-boot-modules/spring-boot-environment/src/main/resources/META-INF/spring/AutoConfiguration.imports
@@ -0,0 +1 @@
+com.baeldung.environmentpostprocessor.autoconfig.PriceCalculationAutoConfig
diff --git a/spring-boot-modules/spring-boot-environment/src/main/resources/META-INF/spring/spring.factories b/spring-boot-modules/spring-boot-environment/src/main/resources/META-INF/spring/spring.factories
new file mode 100644
index 0000000000..ff5e404c84
--- /dev/null
+++ b/spring-boot-modules/spring-boot-environment/src/main/resources/META-INF/spring/spring.factories
@@ -0,0 +1,3 @@
+org.springframework.boot.env.EnvironmentPostProcessor=\
+com.baeldung.environmentpostprocessor.PriceCalculationEnvironmentPostProcessor
+