From 602a40a9785b5e06f1007e2664fa632c2781dc65 Mon Sep 17 00:00:00 2001 From: Niclas Thobaben Date: Sat, 5 Dec 2020 00:09:27 +0100 Subject: [PATCH] REFC moved everything to api-modules --- pom.xml | 5 +++++ resource-manager-api/pom.xml | 15 +++++++++++++++ .../main/java/de/nclazz/resources/Resource.java | 0 .../de/nclazz/resources/ResourceMapping.java | 0 .../de/nclazz/resources/ResourceRepository.java | 0 .../de/nclazz/resources/loader/YamlResource.java | 0 .../resources/loader/YamlResourceRepository.java | 0 .../loader/YamlResourceRepositoryLoader.java | 0 .../protocol/ClasspathResourceHandler.java | 0 .../protocol/CustomStreamHandlerFactory.java | 0 .../de/nclazz/resources/ResourceMappingTest.java | 0 .../nclazz/resources/ResourceRepositoryTest.java | 0 .../java/de/nclazz/resources/ResourceTest.java | 0 .../loader/YamlResourceRepositoryLoaderTest.java | 0 .../src}/test/resources/data/airplane.png | Bin .../src}/test/resources/data/hellospecific.txt | 0 .../src}/test/resources/data/helloworld.txt | 0 .../src}/test/resources/resources-example.yml | 0 18 files changed, 20 insertions(+) create mode 100644 resource-manager-api/pom.xml rename {src => resource-manager-api/src}/main/java/de/nclazz/resources/Resource.java (100%) rename {src => resource-manager-api/src}/main/java/de/nclazz/resources/ResourceMapping.java (100%) rename {src => resource-manager-api/src}/main/java/de/nclazz/resources/ResourceRepository.java (100%) rename {src => resource-manager-api/src}/main/java/de/nclazz/resources/loader/YamlResource.java (100%) rename {src => resource-manager-api/src}/main/java/de/nclazz/resources/loader/YamlResourceRepository.java (100%) rename {src => resource-manager-api/src}/main/java/de/nclazz/resources/loader/YamlResourceRepositoryLoader.java (100%) rename {src => resource-manager-api/src}/main/java/de/nclazz/resources/protocol/ClasspathResourceHandler.java (100%) rename {src => resource-manager-api/src}/main/java/de/nclazz/resources/protocol/CustomStreamHandlerFactory.java (100%) rename {src => resource-manager-api/src}/test/java/de/nclazz/resources/ResourceMappingTest.java (100%) rename {src => resource-manager-api/src}/test/java/de/nclazz/resources/ResourceRepositoryTest.java (100%) rename {src => resource-manager-api/src}/test/java/de/nclazz/resources/ResourceTest.java (100%) rename {src => resource-manager-api/src}/test/java/de/nclazz/resources/loader/YamlResourceRepositoryLoaderTest.java (100%) rename {src => resource-manager-api/src}/test/resources/data/airplane.png (100%) rename {src => resource-manager-api/src}/test/resources/data/hellospecific.txt (100%) rename {src => resource-manager-api/src}/test/resources/data/helloworld.txt (100%) rename {src => resource-manager-api/src}/test/resources/resources-example.yml (100%) diff --git a/pom.xml b/pom.xml index 29a6a85..e24a7b2 100644 --- a/pom.xml +++ b/pom.xml @@ -3,6 +3,11 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + pom + + + resource-manager-api + maven-boot diff --git a/resource-manager-api/pom.xml b/resource-manager-api/pom.xml new file mode 100644 index 0000000..4ec9f0b --- /dev/null +++ b/resource-manager-api/pom.xml @@ -0,0 +1,15 @@ + + + + resource-manager + de.nclazz + 1.0.0-SNAPSHOT + + 4.0.0 + + resource-manager-api + + + \ No newline at end of file diff --git a/src/main/java/de/nclazz/resources/Resource.java b/resource-manager-api/src/main/java/de/nclazz/resources/Resource.java similarity index 100% rename from src/main/java/de/nclazz/resources/Resource.java rename to resource-manager-api/src/main/java/de/nclazz/resources/Resource.java diff --git a/src/main/java/de/nclazz/resources/ResourceMapping.java b/resource-manager-api/src/main/java/de/nclazz/resources/ResourceMapping.java similarity index 100% rename from src/main/java/de/nclazz/resources/ResourceMapping.java rename to resource-manager-api/src/main/java/de/nclazz/resources/ResourceMapping.java diff --git a/src/main/java/de/nclazz/resources/ResourceRepository.java b/resource-manager-api/src/main/java/de/nclazz/resources/ResourceRepository.java similarity index 100% rename from src/main/java/de/nclazz/resources/ResourceRepository.java rename to resource-manager-api/src/main/java/de/nclazz/resources/ResourceRepository.java diff --git a/src/main/java/de/nclazz/resources/loader/YamlResource.java b/resource-manager-api/src/main/java/de/nclazz/resources/loader/YamlResource.java similarity index 100% rename from src/main/java/de/nclazz/resources/loader/YamlResource.java rename to resource-manager-api/src/main/java/de/nclazz/resources/loader/YamlResource.java diff --git a/src/main/java/de/nclazz/resources/loader/YamlResourceRepository.java b/resource-manager-api/src/main/java/de/nclazz/resources/loader/YamlResourceRepository.java similarity index 100% rename from src/main/java/de/nclazz/resources/loader/YamlResourceRepository.java rename to resource-manager-api/src/main/java/de/nclazz/resources/loader/YamlResourceRepository.java diff --git a/src/main/java/de/nclazz/resources/loader/YamlResourceRepositoryLoader.java b/resource-manager-api/src/main/java/de/nclazz/resources/loader/YamlResourceRepositoryLoader.java similarity index 100% rename from src/main/java/de/nclazz/resources/loader/YamlResourceRepositoryLoader.java rename to resource-manager-api/src/main/java/de/nclazz/resources/loader/YamlResourceRepositoryLoader.java diff --git a/src/main/java/de/nclazz/resources/protocol/ClasspathResourceHandler.java b/resource-manager-api/src/main/java/de/nclazz/resources/protocol/ClasspathResourceHandler.java similarity index 100% rename from src/main/java/de/nclazz/resources/protocol/ClasspathResourceHandler.java rename to resource-manager-api/src/main/java/de/nclazz/resources/protocol/ClasspathResourceHandler.java diff --git a/src/main/java/de/nclazz/resources/protocol/CustomStreamHandlerFactory.java b/resource-manager-api/src/main/java/de/nclazz/resources/protocol/CustomStreamHandlerFactory.java similarity index 100% rename from src/main/java/de/nclazz/resources/protocol/CustomStreamHandlerFactory.java rename to resource-manager-api/src/main/java/de/nclazz/resources/protocol/CustomStreamHandlerFactory.java diff --git a/src/test/java/de/nclazz/resources/ResourceMappingTest.java b/resource-manager-api/src/test/java/de/nclazz/resources/ResourceMappingTest.java similarity index 100% rename from src/test/java/de/nclazz/resources/ResourceMappingTest.java rename to resource-manager-api/src/test/java/de/nclazz/resources/ResourceMappingTest.java diff --git a/src/test/java/de/nclazz/resources/ResourceRepositoryTest.java b/resource-manager-api/src/test/java/de/nclazz/resources/ResourceRepositoryTest.java similarity index 100% rename from src/test/java/de/nclazz/resources/ResourceRepositoryTest.java rename to resource-manager-api/src/test/java/de/nclazz/resources/ResourceRepositoryTest.java diff --git a/src/test/java/de/nclazz/resources/ResourceTest.java b/resource-manager-api/src/test/java/de/nclazz/resources/ResourceTest.java similarity index 100% rename from src/test/java/de/nclazz/resources/ResourceTest.java rename to resource-manager-api/src/test/java/de/nclazz/resources/ResourceTest.java diff --git a/src/test/java/de/nclazz/resources/loader/YamlResourceRepositoryLoaderTest.java b/resource-manager-api/src/test/java/de/nclazz/resources/loader/YamlResourceRepositoryLoaderTest.java similarity index 100% rename from src/test/java/de/nclazz/resources/loader/YamlResourceRepositoryLoaderTest.java rename to resource-manager-api/src/test/java/de/nclazz/resources/loader/YamlResourceRepositoryLoaderTest.java diff --git a/src/test/resources/data/airplane.png b/resource-manager-api/src/test/resources/data/airplane.png similarity index 100% rename from src/test/resources/data/airplane.png rename to resource-manager-api/src/test/resources/data/airplane.png diff --git a/src/test/resources/data/hellospecific.txt b/resource-manager-api/src/test/resources/data/hellospecific.txt similarity index 100% rename from src/test/resources/data/hellospecific.txt rename to resource-manager-api/src/test/resources/data/hellospecific.txt diff --git a/src/test/resources/data/helloworld.txt b/resource-manager-api/src/test/resources/data/helloworld.txt similarity index 100% rename from src/test/resources/data/helloworld.txt rename to resource-manager-api/src/test/resources/data/helloworld.txt diff --git a/src/test/resources/resources-example.yml b/resource-manager-api/src/test/resources/resources-example.yml similarity index 100% rename from src/test/resources/resources-example.yml rename to resource-manager-api/src/test/resources/resources-example.yml