From db6a3509e32aaba92c5cc78e97d2ae8b186b2563 Mon Sep 17 00:00:00 2001 From: pz2 Date: Thu, 22 Feb 2024 11:10:23 +0100 Subject: [PATCH] fix missing bean of type HofundDefaultGitInfoProperties --- changelog/unreleased/000001-fix-missing-bean.yml | 8 ++++++++ hofund-core/pom.xml | 2 +- hofund-spring-boot-autoconfigure/pom.xml | 2 +- .../autoconfigure/HofundDefaultGitInfoProperties.java | 4 ++-- .../src/main/resources/META-INF/spring.factories | 1 + ...framework.boot.autoconfigure.AutoConfiguration.imports | 1 + hofund-spring-boot-e2e/pom.xml | 2 +- hofund-spring-boot-starter/pom.xml | 2 +- hofund-spring/pom.xml | 2 +- pom.xml | 2 +- 10 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 changelog/unreleased/000001-fix-missing-bean.yml diff --git a/changelog/unreleased/000001-fix-missing-bean.yml b/changelog/unreleased/000001-fix-missing-bean.yml new file mode 100644 index 0000000..225db29 --- /dev/null +++ b/changelog/unreleased/000001-fix-missing-bean.yml @@ -0,0 +1,8 @@ +title: Fixed problem with missing bean of type `HofundDefaultGitInfoProperties`. +authors: + - name: Peter Zmilczak + nick: marwin1991 + url: https://github.com/marwin1991 +type: fixed #[added/changed/deprecated/removed/fixed/security/other] +merge_requests: + - 29 \ No newline at end of file diff --git a/hofund-core/pom.xml b/hofund-core/pom.xml index 34dda32..83f65bf 100644 --- a/hofund-core/pom.xml +++ b/hofund-core/pom.xml @@ -5,7 +5,7 @@ dev.logchange.hofund hofund - 1.1.0-SNAPSHOT + 1.0.1-SNAPSHOT hofund-core diff --git a/hofund-spring-boot-autoconfigure/pom.xml b/hofund-spring-boot-autoconfigure/pom.xml index 72ed621..609c570 100644 --- a/hofund-spring-boot-autoconfigure/pom.xml +++ b/hofund-spring-boot-autoconfigure/pom.xml @@ -5,7 +5,7 @@ dev.logchange.hofund hofund - 1.1.0-SNAPSHOT + 1.0.1-SNAPSHOT hofund-spring-boot-autoconfigure diff --git a/hofund-spring-boot-autoconfigure/src/main/java/dev/logchange/hofund/git/springboot/autoconfigure/HofundDefaultGitInfoProperties.java b/hofund-spring-boot-autoconfigure/src/main/java/dev/logchange/hofund/git/springboot/autoconfigure/HofundDefaultGitInfoProperties.java index 2258f95..b7b170d 100644 --- a/hofund-spring-boot-autoconfigure/src/main/java/dev/logchange/hofund/git/springboot/autoconfigure/HofundDefaultGitInfoProperties.java +++ b/hofund-spring-boot-autoconfigure/src/main/java/dev/logchange/hofund/git/springboot/autoconfigure/HofundDefaultGitInfoProperties.java @@ -3,13 +3,13 @@ import lombok.Getter; import lombok.RequiredArgsConstructor; import lombok.Setter; +import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.PropertySource; import org.springframework.core.env.Environment; -import org.springframework.stereotype.Component; @Getter @Setter -@Component +@Configuration @PropertySource(value = "git.properties", ignoreResourceNotFound = true) @RequiredArgsConstructor public class HofundDefaultGitInfoProperties { diff --git a/hofund-spring-boot-autoconfigure/src/main/resources/META-INF/spring.factories b/hofund-spring-boot-autoconfigure/src/main/resources/META-INF/spring.factories index 238c2ae..74fc011 100644 --- a/hofund-spring-boot-autoconfigure/src/main/resources/META-INF/spring.factories +++ b/hofund-spring-boot-autoconfigure/src/main/resources/META-INF/spring.factories @@ -1,6 +1,7 @@ org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ dev.logchange.hofund.info.springboot.autoconfigure.HofundInfoAutoConfiguration,\ dev.logchange.hofund.git.springboot.autoconfigure.HofundGitInfoAutoConfiguration,\ +dev.logchange.hofund.git.springboot.autoconfigure.HofundDefaultGitInfoProperties,\ dev.logchange.hofund.connection.springboot.autoconfigure.HofundConnectionAutoConfiguration,\ dev.logchange.hofund.graph.springboot.autoconfigure.HofundGraphAutoConfiguration,\ dev.logchange.hofund.java.springboot.autoconfigure.HofundJavaInfoAutoConfiguration,\ diff --git a/hofund-spring-boot-autoconfigure/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/hofund-spring-boot-autoconfigure/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports index 3baed4e..3161f6c 100644 --- a/hofund-spring-boot-autoconfigure/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports +++ b/hofund-spring-boot-autoconfigure/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports @@ -1,5 +1,6 @@ dev.logchange.hofund.info.springboot.autoconfigure.HofundInfoAutoConfiguration dev.logchange.hofund.git.springboot.autoconfigure.HofundGitInfoAutoConfiguration +dev.logchange.hofund.git.springboot.autoconfigure.HofundDefaultGitInfoProperties dev.logchange.hofund.connection.springboot.autoconfigure.HofundConnectionAutoConfiguration dev.logchange.hofund.graph.springboot.autoconfigure.HofundGraphAutoConfiguration dev.logchange.hofund.java.springboot.autoconfigure.HofundJavaInfoAutoConfiguration diff --git a/hofund-spring-boot-e2e/pom.xml b/hofund-spring-boot-e2e/pom.xml index 3590edf..d6d62e2 100644 --- a/hofund-spring-boot-e2e/pom.xml +++ b/hofund-spring-boot-e2e/pom.xml @@ -3,7 +3,7 @@ hofund dev.logchange.hofund - 1.1.0-SNAPSHOT + 1.0.1-SNAPSHOT 4.0.0 diff --git a/hofund-spring-boot-starter/pom.xml b/hofund-spring-boot-starter/pom.xml index 06ca559..976c1a3 100644 --- a/hofund-spring-boot-starter/pom.xml +++ b/hofund-spring-boot-starter/pom.xml @@ -3,7 +3,7 @@ hofund dev.logchange.hofund - 1.1.0-SNAPSHOT + 1.0.1-SNAPSHOT 4.0.0 diff --git a/hofund-spring/pom.xml b/hofund-spring/pom.xml index 4c03d0c..e050638 100644 --- a/hofund-spring/pom.xml +++ b/hofund-spring/pom.xml @@ -5,7 +5,7 @@ dev.logchange.hofund hofund - 1.1.0-SNAPSHOT + 1.0.1-SNAPSHOT hofund-spring diff --git a/pom.xml b/pom.xml index a0c4c3c..c6df9e0 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ dev.logchange.hofund hofund - 1.1.0-SNAPSHOT + 1.0.1-SNAPSHOT pom hofund