Rename event-bus module to event-bus-core, add event-bus-ap module
event-bus is now a parent project containing the two modules event-bus-core (the previous event-bus) and event-bus-ap (annotation processor). The version of the parent project (and thus that of the modules) has been bumped to 1.0.0, as this change breaks compatibility with previous versions due to the different artifact, module and package names.
This commit is contained in:
parent
9701e862df
commit
fd255d65cc
@ -6,24 +6,6 @@
|
|||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="optional" value="true"/>
|
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
|
||||||
<attribute name="test" value="true"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
|
||||||
<attribute name="test" value="true"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
@ -34,5 +16,17 @@
|
|||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
|
<classpathentry kind="src" output="target/test-classes" path="home/kske/git/event-bus/event-bus-ap">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="optional" value="true"/>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
<attribute name="test" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
@ -11,6 +11,21 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>dev.kske</groupId>
|
<groupId>dev.kske</groupId>
|
||||||
<artifactId>event-bus</artifactId>
|
<artifactId>event-bus</artifactId>
|
||||||
<version>0.1.0</version>
|
<version>1.0.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>dev.kske</groupId>
|
||||||
|
<artifactId>event-bus-core</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
|
||||||
|
<!-- Disable test folder -->
|
||||||
|
<testSourceDirectory />
|
||||||
|
|
||||||
|
</build>
|
||||||
</project>
|
</project>
|
@ -9,7 +9,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>dev.kske</groupId>
|
<groupId>dev.kske</groupId>
|
||||||
<artifactId>event-bus</artifactId>
|
<artifactId>event-bus</artifactId>
|
||||||
<version>0.1.0</version>
|
<version>1.0.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@ -20,4 +20,11 @@
|
|||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
|
||||||
|
<!-- Disable resource folder -->
|
||||||
|
<resources />
|
||||||
|
|
||||||
|
</build>
|
||||||
</project>
|
</project>
|
@ -1,4 +1,4 @@
|
|||||||
package dev.kske.eventbus;
|
package dev.kske.eventbus.core;
|
||||||
|
|
||||||
import static java.lang.annotation.ElementType.METHOD;
|
import static java.lang.annotation.ElementType.METHOD;
|
||||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
@ -1,4 +1,4 @@
|
|||||||
package dev.kske.eventbus;
|
package dev.kske.eventbus.core;
|
||||||
|
|
||||||
import java.lang.System.Logger;
|
import java.lang.System.Logger;
|
||||||
import java.lang.System.Logger.Level;
|
import java.lang.System.Logger.Level;
|
@ -1,4 +1,4 @@
|
|||||||
package dev.kske.eventbus;
|
package dev.kske.eventbus.core;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This runtime exception is thrown when an event bus error occurs. This can
|
* This runtime exception is thrown when an event bus error occurs. This can
|
@ -1,8 +1,8 @@
|
|||||||
package dev.kske.eventbus;
|
package dev.kske.eventbus.core;
|
||||||
|
|
||||||
import java.lang.reflect.*;
|
import java.lang.reflect.*;
|
||||||
|
|
||||||
import dev.kske.eventbus.Event.USE_PARAMETER;
|
import dev.kske.eventbus.core.Event.USE_PARAMETER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal representation of an event handling method.
|
* Internal representation of an event handling method.
|
@ -1,4 +1,4 @@
|
|||||||
package dev.kske.eventbus;
|
package dev.kske.eventbus.core;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Marker interface for event listeners. Event listeners can contain event handling methods to which
|
* Marker interface for event listeners. Event listeners can contain event handling methods to which
|
@ -1,4 +1,4 @@
|
|||||||
package dev.kske.eventbus;
|
package dev.kske.eventbus.core;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Marker interface for event objects. Event objects can be used as event handler parameters and
|
* Marker interface for event objects. Event objects can be used as event handler parameters and
|
@ -0,0 +1,9 @@
|
|||||||
|
/**
|
||||||
|
* Contains the public API and implementation of the Event Bus library.
|
||||||
|
*
|
||||||
|
* @author Kai S. K. Engelbart
|
||||||
|
* @since 0.0.1
|
||||||
|
* @see dev.kske.eventbus.core.Event
|
||||||
|
* @see dev.kske.eventbus.core.EventBus
|
||||||
|
*/
|
||||||
|
package dev.kske.eventbus.core;
|
@ -1,9 +0,0 @@
|
|||||||
/**
|
|
||||||
* Contains the public API and implementation of the event bus library.
|
|
||||||
*
|
|
||||||
* @author Kai S. K. Engelbart
|
|
||||||
* @since 0.0.1
|
|
||||||
* @see dev.kske.eventbus.Event
|
|
||||||
* @see dev.kske.eventbus.EventBus
|
|
||||||
*/
|
|
||||||
package dev.kske.eventbus;
|
|
@ -1,12 +1,12 @@
|
|||||||
/**
|
/**
|
||||||
* Contains the public API and implementation of the event bus library.
|
* Contains the public API and implementation of the Event Bus library.
|
||||||
*
|
*
|
||||||
* @author Kai S. K. Engelbart
|
* @author Kai S. K. Engelbart
|
||||||
* @since 0.0.3
|
* @since 0.0.3
|
||||||
* @see dev.kske.eventbus.Event
|
* @see dev.kske.eventbus.core.Event
|
||||||
* @see dev.kske.eventbus.EventBus
|
* @see dev.kske.eventbus.core.EventBus
|
||||||
*/
|
*/
|
||||||
module dev.kske.eventbus {
|
module dev.kske.eventbus.core {
|
||||||
|
|
||||||
exports dev.kske.eventbus;
|
exports dev.kske.eventbus.core;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package dev.kske.eventbus;
|
package dev.kske.eventbus.core;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package dev.kske.eventbus;
|
package dev.kske.eventbus.core;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package dev.kske.eventbus;
|
package dev.kske.eventbus.core;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A simple event for testing purposes.
|
* A simple event for testing purposes.
|
@ -1,4 +1,4 @@
|
|||||||
package dev.kske.eventbus;
|
package dev.kske.eventbus.core;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Subclass of {@link SimpleEvent} for testing purposes.
|
* Subclass of {@link SimpleEvent} for testing purposes.
|
5
pom.xml
5
pom.xml
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>dev.kske</groupId>
|
<groupId>dev.kske</groupId>
|
||||||
<artifactId>event-bus</artifactId>
|
<artifactId>event-bus</artifactId>
|
||||||
<version>0.1.0</version>
|
<version>1.0.0</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<name>Event Bus</name>
|
<name>Event Bus</name>
|
||||||
@ -52,8 +52,7 @@
|
|||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
||||||
<!-- Disable resource folders -->
|
<!-- Disable test resource folder -->
|
||||||
<resources />
|
|
||||||
<testResources />
|
<testResources />
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
|
Loading…
Reference in New Issue
Block a user