From 3669d3476e4ca184abcbcff2e3e0bc1bb898bb26 Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Mon, 26 Sep 2022 21:34:43 +0200 Subject: [PATCH] GH-1 - Remove obsolete events starter module. --- spring-modulith-events/pom.xml | 1 - .../spring-modulith-events-starter/pom.xml | 38 -------------- .../DomainEventsAutoConfiguration.java | 51 ------------------- .../modulith/events/starter/package-info.java | 2 - .../main/resources/META-INF/spring.factories | 2 - 5 files changed, 94 deletions(-) delete mode 100644 spring-modulith-events/spring-modulith-events-starter/pom.xml delete mode 100644 spring-modulith-events/spring-modulith-events-starter/src/main/java/org/springframework/modulith/events/starter/DomainEventsAutoConfiguration.java delete mode 100644 spring-modulith-events/spring-modulith-events-starter/src/main/java/org/springframework/modulith/events/starter/package-info.java delete mode 100644 spring-modulith-events/spring-modulith-events-starter/src/main/resources/META-INF/spring.factories diff --git a/spring-modulith-events/pom.xml b/spring-modulith-events/pom.xml index d4f46302..57153e82 100644 --- a/spring-modulith-events/pom.xml +++ b/spring-modulith-events/pom.xml @@ -20,7 +20,6 @@ spring-modulith-events-mongodb spring-modulith-events-jackson spring-modulith-events-tests - spring-modulith-events-starter diff --git a/spring-modulith-events/spring-modulith-events-starter/pom.xml b/spring-modulith-events/spring-modulith-events-starter/pom.xml deleted file mode 100644 index b0dd9d24..00000000 --- a/spring-modulith-events/spring-modulith-events-starter/pom.xml +++ /dev/null @@ -1,38 +0,0 @@ - - 4.0.0 - - - org.springframework.experimental - spring-modulith-events - 0.1.0-SNAPSHOT - ../pom.xml - - - Spring Modulith - Events - Spring Boot Starter - spring-modulith-events-starter - - - org.springframework.modulith.events.starter - - - - - - org.springframework.boot - spring-boot-autoconfigure - - - - ${project.groupId} - spring-modulith-events-jpa - ${project.version} - - - - ${project.groupId} - spring-modulith-events-jackson - ${project.version} - - - - \ No newline at end of file diff --git a/spring-modulith-events/spring-modulith-events-starter/src/main/java/org/springframework/modulith/events/starter/DomainEventsAutoConfiguration.java b/spring-modulith-events/spring-modulith-events-starter/src/main/java/org/springframework/modulith/events/starter/DomainEventsAutoConfiguration.java deleted file mode 100644 index d7ced32f..00000000 --- a/spring-modulith-events/spring-modulith-events-starter/src/main/java/org/springframework/modulith/events/starter/DomainEventsAutoConfiguration.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2017-2022 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.springframework.modulith.events.starter; - -import org.springframework.beans.factory.support.BeanDefinitionRegistry; -import org.springframework.boot.autoconfigure.AutoConfigurationPackages; -import org.springframework.boot.autoconfigure.AutoConfigureBefore; -import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Import; -import org.springframework.context.annotation.ImportBeanDefinitionRegistrar; -import org.springframework.core.type.AnnotationMetadata; -import org.springframework.modulith.events.EventPublication; -import org.springframework.modulith.events.config.EnablePersistentDomainEvents; - -/** - * Enables auto-configuration for the events package. - * - * @author Oliver Drotbohm - */ -@Configuration -@AutoConfigureBefore(HibernateJpaAutoConfiguration.class) -@Import(DomainEventsAutoConfiguration.EnableAutoConfigForEventsPackage.class) -@EnablePersistentDomainEvents -public class DomainEventsAutoConfiguration { - - static class EnableAutoConfigForEventsPackage implements ImportBeanDefinitionRegistrar { - - /* - * (non-Javadoc) - * @see org.springframework.context.annotation.ImportBeanDefinitionRegistrar#registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry) - */ - @Override - public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) { - AutoConfigurationPackages.register(registry, EventPublication.class.getPackage().getName()); - } - } -} diff --git a/spring-modulith-events/spring-modulith-events-starter/src/main/java/org/springframework/modulith/events/starter/package-info.java b/spring-modulith-events/spring-modulith-events-starter/src/main/java/org/springframework/modulith/events/starter/package-info.java deleted file mode 100644 index ac6801f8..00000000 --- a/spring-modulith-events/spring-modulith-events-starter/src/main/java/org/springframework/modulith/events/starter/package-info.java +++ /dev/null @@ -1,2 +0,0 @@ -@org.springframework.lang.NonNullApi -package org.springframework.modulith.events.starter; diff --git a/spring-modulith-events/spring-modulith-events-starter/src/main/resources/META-INF/spring.factories b/spring-modulith-events/spring-modulith-events-starter/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 819f0759..00000000 --- a/spring-modulith-events/spring-modulith-events-starter/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,2 +0,0 @@ -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ - org.springframework.modulith.events.starter.DomainEventsAutoConfiguration