From 9701e862df18a73b18bbaed580f2c92481e912a6 Mon Sep 17 00:00:00 2001 From: kske Date: Mon, 8 Feb 2021 19:30:37 +0100 Subject: [PATCH] Add parent project, convert existing project to Maven module --- .project | 17 +++++++++ event-bus-ap/.classpath | 38 +++++++++++++++++++ {event-bus => event-bus-ap}/.project | 2 +- event-bus-ap/pom.xml | 16 ++++++++ {event-bus => event-bus-core}/.classpath | 0 event-bus-core/.project | 23 +++++++++++ event-bus-core/pom.xml | 23 +++++++++++ .../main/java/dev/kske/eventbus/Event.java | 0 .../main/java/dev/kske/eventbus/EventBus.java | 0 .../dev/kske/eventbus/EventBusException.java | 0 .../java/dev/kske/eventbus/EventHandler.java | 0 .../java/dev/kske/eventbus/EventListener.java | 0 .../main/java/dev/kske/eventbus/IEvent.java | 0 .../java/dev/kske/eventbus/package-info.java | 0 .../src/main/java/module-info.java | 0 .../java/dev/kske/eventbus/CancelTest.java | 0 .../java/dev/kske/eventbus/DispatchTest.java | 0 .../java/dev/kske/eventbus/SimpleEvent.java | 0 .../dev/kske/eventbus/SimpleEventSub.java | 0 event-bus/pom.xml => pom.xml | 21 +++++----- 20 files changed, 127 insertions(+), 13 deletions(-) create mode 100644 .project create mode 100644 event-bus-ap/.classpath rename {event-bus => event-bus-ap}/.project (95%) create mode 100644 event-bus-ap/pom.xml rename {event-bus => event-bus-core}/.classpath (100%) create mode 100644 event-bus-core/.project create mode 100644 event-bus-core/pom.xml rename {event-bus => event-bus-core}/src/main/java/dev/kske/eventbus/Event.java (100%) rename {event-bus => event-bus-core}/src/main/java/dev/kske/eventbus/EventBus.java (100%) rename {event-bus => event-bus-core}/src/main/java/dev/kske/eventbus/EventBusException.java (100%) rename {event-bus => event-bus-core}/src/main/java/dev/kske/eventbus/EventHandler.java (100%) rename {event-bus => event-bus-core}/src/main/java/dev/kske/eventbus/EventListener.java (100%) rename {event-bus => event-bus-core}/src/main/java/dev/kske/eventbus/IEvent.java (100%) rename {event-bus => event-bus-core}/src/main/java/dev/kske/eventbus/package-info.java (100%) rename {event-bus => event-bus-core}/src/main/java/module-info.java (100%) rename {event-bus => event-bus-core}/src/test/java/dev/kske/eventbus/CancelTest.java (100%) rename {event-bus => event-bus-core}/src/test/java/dev/kske/eventbus/DispatchTest.java (100%) rename {event-bus => event-bus-core}/src/test/java/dev/kske/eventbus/SimpleEvent.java (100%) rename {event-bus => event-bus-core}/src/test/java/dev/kske/eventbus/SimpleEventSub.java (100%) rename event-bus/pom.xml => pom.xml (83%) diff --git a/.project b/.project new file mode 100644 index 0000000..65850dd --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + event-bus + + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.m2e.core.maven2Nature + + diff --git a/event-bus-ap/.classpath b/event-bus-ap/.classpath new file mode 100644 index 0000000..0fb79cf --- /dev/null +++ b/event-bus-ap/.classpath @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/event-bus/.project b/event-bus-ap/.project similarity index 95% rename from event-bus/.project rename to event-bus-ap/.project index 2acd4d0..7976120 100644 --- a/event-bus/.project +++ b/event-bus-ap/.project @@ -1,6 +1,6 @@ - event-bus + event-bus-ap diff --git a/event-bus-ap/pom.xml b/event-bus-ap/pom.xml new file mode 100644 index 0000000..b9207fb --- /dev/null +++ b/event-bus-ap/pom.xml @@ -0,0 +1,16 @@ + + 4.0.0 + + event-bus-ap + + Event Bus Annotation Processor + Annotation processor checking for errors related to the @Event annotation from Event Bus. + + + dev.kske + event-bus + 0.1.0 + + \ No newline at end of file diff --git a/event-bus/.classpath b/event-bus-core/.classpath similarity index 100% rename from event-bus/.classpath rename to event-bus-core/.classpath diff --git a/event-bus-core/.project b/event-bus-core/.project new file mode 100644 index 0000000..8523046 --- /dev/null +++ b/event-bus-core/.project @@ -0,0 +1,23 @@ + + + event-bus-core + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/event-bus-core/pom.xml b/event-bus-core/pom.xml new file mode 100644 index 0000000..1f1f5b6 --- /dev/null +++ b/event-bus-core/pom.xml @@ -0,0 +1,23 @@ + + 4.0.0 + + event-bus-core + Event Bus Core + + + dev.kske + event-bus + 0.1.0 + + + + + org.junit.jupiter + junit-jupiter-api + 5.6.2 + test + + + \ No newline at end of file diff --git a/event-bus/src/main/java/dev/kske/eventbus/Event.java b/event-bus-core/src/main/java/dev/kske/eventbus/Event.java similarity index 100% rename from event-bus/src/main/java/dev/kske/eventbus/Event.java rename to event-bus-core/src/main/java/dev/kske/eventbus/Event.java diff --git a/event-bus/src/main/java/dev/kske/eventbus/EventBus.java b/event-bus-core/src/main/java/dev/kske/eventbus/EventBus.java similarity index 100% rename from event-bus/src/main/java/dev/kske/eventbus/EventBus.java rename to event-bus-core/src/main/java/dev/kske/eventbus/EventBus.java diff --git a/event-bus/src/main/java/dev/kske/eventbus/EventBusException.java b/event-bus-core/src/main/java/dev/kske/eventbus/EventBusException.java similarity index 100% rename from event-bus/src/main/java/dev/kske/eventbus/EventBusException.java rename to event-bus-core/src/main/java/dev/kske/eventbus/EventBusException.java diff --git a/event-bus/src/main/java/dev/kske/eventbus/EventHandler.java b/event-bus-core/src/main/java/dev/kske/eventbus/EventHandler.java similarity index 100% rename from event-bus/src/main/java/dev/kske/eventbus/EventHandler.java rename to event-bus-core/src/main/java/dev/kske/eventbus/EventHandler.java diff --git a/event-bus/src/main/java/dev/kske/eventbus/EventListener.java b/event-bus-core/src/main/java/dev/kske/eventbus/EventListener.java similarity index 100% rename from event-bus/src/main/java/dev/kske/eventbus/EventListener.java rename to event-bus-core/src/main/java/dev/kske/eventbus/EventListener.java diff --git a/event-bus/src/main/java/dev/kske/eventbus/IEvent.java b/event-bus-core/src/main/java/dev/kske/eventbus/IEvent.java similarity index 100% rename from event-bus/src/main/java/dev/kske/eventbus/IEvent.java rename to event-bus-core/src/main/java/dev/kske/eventbus/IEvent.java diff --git a/event-bus/src/main/java/dev/kske/eventbus/package-info.java b/event-bus-core/src/main/java/dev/kske/eventbus/package-info.java similarity index 100% rename from event-bus/src/main/java/dev/kske/eventbus/package-info.java rename to event-bus-core/src/main/java/dev/kske/eventbus/package-info.java diff --git a/event-bus/src/main/java/module-info.java b/event-bus-core/src/main/java/module-info.java similarity index 100% rename from event-bus/src/main/java/module-info.java rename to event-bus-core/src/main/java/module-info.java diff --git a/event-bus/src/test/java/dev/kske/eventbus/CancelTest.java b/event-bus-core/src/test/java/dev/kske/eventbus/CancelTest.java similarity index 100% rename from event-bus/src/test/java/dev/kske/eventbus/CancelTest.java rename to event-bus-core/src/test/java/dev/kske/eventbus/CancelTest.java diff --git a/event-bus/src/test/java/dev/kske/eventbus/DispatchTest.java b/event-bus-core/src/test/java/dev/kske/eventbus/DispatchTest.java similarity index 100% rename from event-bus/src/test/java/dev/kske/eventbus/DispatchTest.java rename to event-bus-core/src/test/java/dev/kske/eventbus/DispatchTest.java diff --git a/event-bus/src/test/java/dev/kske/eventbus/SimpleEvent.java b/event-bus-core/src/test/java/dev/kske/eventbus/SimpleEvent.java similarity index 100% rename from event-bus/src/test/java/dev/kske/eventbus/SimpleEvent.java rename to event-bus-core/src/test/java/dev/kske/eventbus/SimpleEvent.java diff --git a/event-bus/src/test/java/dev/kske/eventbus/SimpleEventSub.java b/event-bus-core/src/test/java/dev/kske/eventbus/SimpleEventSub.java similarity index 100% rename from event-bus/src/test/java/dev/kske/eventbus/SimpleEventSub.java rename to event-bus-core/src/test/java/dev/kske/eventbus/SimpleEventSub.java diff --git a/event-bus/pom.xml b/pom.xml similarity index 83% rename from event-bus/pom.xml rename to pom.xml index 4ddb9ac..e7d4b95 100644 --- a/event-bus/pom.xml +++ b/pom.xml @@ -6,10 +6,16 @@ dev.kske event-bus 0.1.0 + pom Event Bus An event handling framework for Java utilizing annotations. - https://git.kske.dev/zdm/event-bus + https://git.kske.dev/kske/event-bus + + + event-bus-core + event-bus-ap + @@ -33,8 +39,8 @@ - scm:git:https://git.kske.dev/zdm/event-bus.git - scm:git:ssh:git@git.kske.dev:zdm/event-bus.git + scm:git:https://git.kske.dev/kske/event-bus.git + scm:git:ssh:git@git.kske.dev:kske/event-bus.git @@ -89,13 +95,4 @@ - - - - org.junit.jupiter - junit-jupiter-api - 5.6.2 - test - - \ No newline at end of file