Restructure Project, Add Annotation Processor #4

Merged
kske merged 8 commits from f/annotation-processor into develop 2021-02-15 13:42:28 +01:00
17 changed files with 63 additions and 48 deletions
Showing only changes of commit fd255d65cc - Show all commits

View File

@ -6,24 +6,6 @@
<attribute name="maven.pomderived" 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="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">
<attributes>
<attribute name="maven.pomderived" value="true"/>
@ -34,5 +16,17 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</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"/>
</classpath>

View File

@ -11,6 +11,21 @@
<parent>
<groupId>dev.kske</groupId>
<artifactId>event-bus</artifactId>
<version>0.1.0</version>
<version>1.0.0</version>
</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>

View File

@ -9,7 +9,7 @@
<parent>
<groupId>dev.kske</groupId>
<artifactId>event-bus</artifactId>
<version>0.1.0</version>
<version>1.0.0</version>
</parent>
<dependencies>
@ -20,4 +20,11 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<!-- Disable resource folder -->
<resources />
</build>
</project>

View File

@ -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.RetentionPolicy.RUNTIME;

View File

@ -1,4 +1,4 @@
package dev.kske.eventbus;
package dev.kske.eventbus.core;
import java.lang.System.Logger;
import java.lang.System.Logger.Level;

View File

@ -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

View File

@ -1,8 +1,8 @@
package dev.kske.eventbus;
package dev.kske.eventbus.core;
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.

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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
* @since 0.0.3
* @see dev.kske.eventbus.Event
* @see dev.kske.eventbus.EventBus
* @see dev.kske.eventbus.core.Event
* @see dev.kske.eventbus.core.EventBus
*/
module dev.kske.eventbus {
module dev.kske.eventbus.core {
exports dev.kske.eventbus;
exports dev.kske.eventbus.core;
}

View File

@ -1,4 +1,4 @@
package dev.kske.eventbus;
package dev.kske.eventbus.core;
import static org.junit.jupiter.api.Assertions.assertEquals;

View File

@ -1,4 +1,4 @@
package dev.kske.eventbus;
package dev.kske.eventbus.core;
import static org.junit.jupiter.api.Assertions.*;

View File

@ -1,4 +1,4 @@
package dev.kske.eventbus;
package dev.kske.eventbus.core;
/**
* A simple event for testing purposes.

View File

@ -1,4 +1,4 @@
package dev.kske.eventbus;
package dev.kske.eventbus.core;
/**
* Subclass of {@link SimpleEvent} for testing purposes.

View File

@ -5,7 +5,7 @@
<groupId>dev.kske</groupId>
<artifactId>event-bus</artifactId>
<version>0.1.0</version>
<version>1.0.0</version>
<packaging>pom</packaging>
<name>Event Bus</name>
@ -52,8 +52,7 @@
<build>
<!-- Disable resource folders -->
<resources />
<!-- Disable test resource folder -->
<testResources />
<plugins>