Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
th-schwarz committed Sep 17, 2024
1 parent 74212e8 commit 7c5dc90
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 25 deletions.
11 changes: 10 additions & 1 deletion dyndrest-data/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>dyndrest-data</artifactId>
<name>dyndrest-model</name>
<name>dyndrest-data</name>
<packaging>jar</packaging>

<description>This modules contains the model and the database layer.</description>

Expand All @@ -18,6 +19,14 @@
<artifactId>dyndrest-checkstyle</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot</artifactId>
Expand Down
9 changes: 5 additions & 4 deletions dyndrest-api/pom.xml → dyndrest-routes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
<groupId>codes.thischwa</groupId>
<artifactId>dyndrest</artifactId>
<version>0.9.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>dyndrest-api</artifactId>
<name>dyndrest-api</name>
<artifactId>dyndrest-routes</artifactId>
<name>dyndrest-routes</name>

<packaging>jar</packaging>

<dependencies>
<dependency>
Expand All @@ -19,7 +20,7 @@
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations-jakarta</artifactId>
<version>2.2.19</version>
<version>${swaggerv3-annotation.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package codes.thischwa.dyndrest;
package codes.thischwa.dyndrest.route;

import codes.thischwa.dyndrest.model.FullHost;
import codes.thischwa.dyndrest.model.Zone;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package codes.thischwa.dyndrest;
package codes.thischwa.dyndrest.route;

import codes.thischwa.dyndrest.model.IpSetting;
import io.swagger.v3.oas.annotations.ExternalDocumentation;
Expand Down Expand Up @@ -41,9 +41,9 @@
@ExternalDocumentation(
description = "DynDRest on Github",
url = "https://github.com/th-schwarz/DynDRest"))
public// @formatter:on
// @formatter:on
// naming conventions: https://restfulapi.net/resource-naming/
interface ApiRoutes {
public interface ApiRoutes {

@Operation(
summary =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package codes.thischwa.dyndrest;
package codes.thischwa.dyndrest.route;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Schema;
Expand All @@ -16,7 +16,7 @@
*/
public interface RouterRoutes {
/*+
* It's a duplicate of {@link codes.thischwa.dyndrest.ApiRoutes#updateHost} for routers which can't use the Put method.
* It's a duplicate of {@link codes.thischwa.dyndrest.api.ApiRoutes#updateHost} for routers which can't use the Put method.
*/
@Operation(
summary =
Expand Down
3 changes: 2 additions & 1 deletion dyndrest-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
</parent>
<artifactId>dyndrest-server</artifactId>
<name>dyndrest-server</name>
<packaging>jar</packaging>

<dependencies>
<dependency>
Expand All @@ -23,7 +24,7 @@
</dependency>
<dependency>
<groupId>codes.thischwa</groupId>
<artifactId>dyndrest-api</artifactId>
<artifactId>dyndrest-routes</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package codes.thischwa.dyndrest.server;

import codes.thischwa.dyndrest.AdminRoutes;
import codes.thischwa.dyndrest.route.AdminRoutes;
import codes.thischwa.dyndrest.model.config.AppConfig;
import codes.thischwa.dyndrest.model.FullHost;
import codes.thischwa.dyndrest.model.Zone;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package codes.thischwa.dyndrest.server;

import codes.thischwa.dyndrest.ApiRoutes;
import codes.thischwa.dyndrest.RouterRoutes;
import codes.thischwa.dyndrest.route.ApiRoutes;
import codes.thischwa.dyndrest.route.RouterRoutes;
import codes.thischwa.dyndrest.model.config.AppConfig;
import codes.thischwa.dyndrest.model.IpSetting;
import codes.thischwa.dyndrest.model.UpdateLog;
Expand Down
1 change: 1 addition & 0 deletions dyndrest-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
</parent>
<artifactId>dyndrest-service</artifactId>
<name>dyndrest-service</name>
<packaging>jar</packaging>

<dependencies>
<dependency>
Expand Down
21 changes: 11 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
<packaging>pom</packaging>

<modules>
<module>dyndrest-data</module>
<module>dyndrest-server</module>
<module>dyndrest-checkstyle</module>
<module>dyndrest-data</module>
<!-- <module>dyndrest-opendoc</module>-->
<module>dyndrest-api</module>
<module>dyndrest-service</module>
<module>test-module</module>
<module>dyndrest-routes</module>
</modules>

<properties>
Expand All @@ -36,6 +36,7 @@
<domainrobot.version>0.2.8</domainrobot.version>
<dnsjava.version>3.5.3</dnsjava.version>
<janino.version>3.1.11</janino.version>
<swaggerv3-annotation.version>2.2.21</swaggerv3-annotation.version>

<fakerepo.dir>${project.basedir}/fake-repo</fakerepo.dir>

Expand Down Expand Up @@ -85,14 +86,6 @@
<artifactId>janino</artifactId>
<version>${janino.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
Expand All @@ -113,6 +106,14 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down

0 comments on commit 7c5dc90

Please sign in to comment.