From 3e5a8cc593f860e338033637337d1deb8ca0614f Mon Sep 17 00:00:00 2001 From: gotty Date: Fri, 19 Apr 2019 06:29:16 +0300 Subject: [PATCH] [LIB-9] Separate chesshog-core module --- chesshog-core/pom.xml | 39 ++++++++++++++++++++++ .../main/java/org/hedgecode/chess/ChessHogApp.java | 0 .../org/hedgecode/chess/ChessHogConstants.java | 0 .../org/hedgecode/chess/game/AbstractMove.java | 0 .../main/java/org/hedgecode/chess/game/Game.java | 0 .../java/org/hedgecode/chess/game/GameMove.java | 0 .../java/org/hedgecode/chess/game/GameMoves.java | 0 .../main/java/org/hedgecode/chess/game/Move.java | 0 .../main/java/org/hedgecode/chess/game/Moves.java | 0 .../java/org/hedgecode/chess/position/Builder.java | 0 .../java/org/hedgecode/chess/position/Castle.java | 0 .../java/org/hedgecode/chess/position/Color.java | 0 .../org/hedgecode/chess/position/ColorPiece.java | 0 .../hedgecode/chess/position/DiagramPosition.java | 0 .../org/hedgecode/chess/position/GamePosition.java | 0 .../hedgecode/chess/position/ParseException.java | 0 .../java/org/hedgecode/chess/position/Parser.java | 0 .../java/org/hedgecode/chess/position/Piece.java | 0 .../org/hedgecode/chess/position/Position.java | 0 .../org/hedgecode/chess/position/PositionType.java | 0 .../org/hedgecode/chess/position/Positions.java | 0 .../java/org/hedgecode/chess/position/Square.java | 0 .../org/hedgecode/chess/position/SquareSort.java | 0 .../org/hedgecode/chess/AbstractPositionTest.java | 3 -- .../org/hedgecode/chess/AbstractXMLConfigTest.java | 0 pom.xml | 22 ++++++++---- 26 files changed, 55 insertions(+), 9 deletions(-) create mode 100644 chesshog-core/pom.xml rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/ChessHogApp.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/ChessHogConstants.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/game/AbstractMove.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/game/Game.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/game/GameMove.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/game/GameMoves.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/game/Move.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/game/Moves.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/position/Builder.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/position/Castle.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/position/Color.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/position/ColorPiece.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/position/DiagramPosition.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/position/GamePosition.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/position/ParseException.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/position/Parser.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/position/Piece.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/position/Position.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/position/PositionType.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/position/Positions.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/position/Square.java (100%) rename {src => chesshog-core/src}/main/java/org/hedgecode/chess/position/SquareSort.java (100%) rename {src => chesshog-core/src}/test/java/org/hedgecode/chess/AbstractPositionTest.java (99%) rename {src => chesshog-core/src}/test/java/org/hedgecode/chess/AbstractXMLConfigTest.java (100%) diff --git a/chesshog-core/pom.xml b/chesshog-core/pom.xml new file mode 100644 index 0000000..d1dda9e --- /dev/null +++ b/chesshog-core/pom.xml @@ -0,0 +1,39 @@ + + + + + + 4.0.0 + + + org.hedgecode.chess + chesshog + 0.1-SNAPSHOT + + + chesshog-core + 0.1-SNAPSHOT + jar + + Hedgecode ChessHog Core + + Hedgecode ChessHog Core Module. + + + \ No newline at end of file diff --git a/src/main/java/org/hedgecode/chess/ChessHogApp.java b/chesshog-core/src/main/java/org/hedgecode/chess/ChessHogApp.java similarity index 100% rename from src/main/java/org/hedgecode/chess/ChessHogApp.java rename to chesshog-core/src/main/java/org/hedgecode/chess/ChessHogApp.java diff --git a/src/main/java/org/hedgecode/chess/ChessHogConstants.java b/chesshog-core/src/main/java/org/hedgecode/chess/ChessHogConstants.java similarity index 100% rename from src/main/java/org/hedgecode/chess/ChessHogConstants.java rename to chesshog-core/src/main/java/org/hedgecode/chess/ChessHogConstants.java diff --git a/src/main/java/org/hedgecode/chess/game/AbstractMove.java b/chesshog-core/src/main/java/org/hedgecode/chess/game/AbstractMove.java similarity index 100% rename from src/main/java/org/hedgecode/chess/game/AbstractMove.java rename to chesshog-core/src/main/java/org/hedgecode/chess/game/AbstractMove.java diff --git a/src/main/java/org/hedgecode/chess/game/Game.java b/chesshog-core/src/main/java/org/hedgecode/chess/game/Game.java similarity index 100% rename from src/main/java/org/hedgecode/chess/game/Game.java rename to chesshog-core/src/main/java/org/hedgecode/chess/game/Game.java diff --git a/src/main/java/org/hedgecode/chess/game/GameMove.java b/chesshog-core/src/main/java/org/hedgecode/chess/game/GameMove.java similarity index 100% rename from src/main/java/org/hedgecode/chess/game/GameMove.java rename to chesshog-core/src/main/java/org/hedgecode/chess/game/GameMove.java diff --git a/src/main/java/org/hedgecode/chess/game/GameMoves.java b/chesshog-core/src/main/java/org/hedgecode/chess/game/GameMoves.java similarity index 100% rename from src/main/java/org/hedgecode/chess/game/GameMoves.java rename to chesshog-core/src/main/java/org/hedgecode/chess/game/GameMoves.java diff --git a/src/main/java/org/hedgecode/chess/game/Move.java b/chesshog-core/src/main/java/org/hedgecode/chess/game/Move.java similarity index 100% rename from src/main/java/org/hedgecode/chess/game/Move.java rename to chesshog-core/src/main/java/org/hedgecode/chess/game/Move.java diff --git a/src/main/java/org/hedgecode/chess/game/Moves.java b/chesshog-core/src/main/java/org/hedgecode/chess/game/Moves.java similarity index 100% rename from src/main/java/org/hedgecode/chess/game/Moves.java rename to chesshog-core/src/main/java/org/hedgecode/chess/game/Moves.java diff --git a/src/main/java/org/hedgecode/chess/position/Builder.java b/chesshog-core/src/main/java/org/hedgecode/chess/position/Builder.java similarity index 100% rename from src/main/java/org/hedgecode/chess/position/Builder.java rename to chesshog-core/src/main/java/org/hedgecode/chess/position/Builder.java diff --git a/src/main/java/org/hedgecode/chess/position/Castle.java b/chesshog-core/src/main/java/org/hedgecode/chess/position/Castle.java similarity index 100% rename from src/main/java/org/hedgecode/chess/position/Castle.java rename to chesshog-core/src/main/java/org/hedgecode/chess/position/Castle.java diff --git a/src/main/java/org/hedgecode/chess/position/Color.java b/chesshog-core/src/main/java/org/hedgecode/chess/position/Color.java similarity index 100% rename from src/main/java/org/hedgecode/chess/position/Color.java rename to chesshog-core/src/main/java/org/hedgecode/chess/position/Color.java diff --git a/src/main/java/org/hedgecode/chess/position/ColorPiece.java b/chesshog-core/src/main/java/org/hedgecode/chess/position/ColorPiece.java similarity index 100% rename from src/main/java/org/hedgecode/chess/position/ColorPiece.java rename to chesshog-core/src/main/java/org/hedgecode/chess/position/ColorPiece.java diff --git a/src/main/java/org/hedgecode/chess/position/DiagramPosition.java b/chesshog-core/src/main/java/org/hedgecode/chess/position/DiagramPosition.java similarity index 100% rename from src/main/java/org/hedgecode/chess/position/DiagramPosition.java rename to chesshog-core/src/main/java/org/hedgecode/chess/position/DiagramPosition.java diff --git a/src/main/java/org/hedgecode/chess/position/GamePosition.java b/chesshog-core/src/main/java/org/hedgecode/chess/position/GamePosition.java similarity index 100% rename from src/main/java/org/hedgecode/chess/position/GamePosition.java rename to chesshog-core/src/main/java/org/hedgecode/chess/position/GamePosition.java diff --git a/src/main/java/org/hedgecode/chess/position/ParseException.java b/chesshog-core/src/main/java/org/hedgecode/chess/position/ParseException.java similarity index 100% rename from src/main/java/org/hedgecode/chess/position/ParseException.java rename to chesshog-core/src/main/java/org/hedgecode/chess/position/ParseException.java diff --git a/src/main/java/org/hedgecode/chess/position/Parser.java b/chesshog-core/src/main/java/org/hedgecode/chess/position/Parser.java similarity index 100% rename from src/main/java/org/hedgecode/chess/position/Parser.java rename to chesshog-core/src/main/java/org/hedgecode/chess/position/Parser.java diff --git a/src/main/java/org/hedgecode/chess/position/Piece.java b/chesshog-core/src/main/java/org/hedgecode/chess/position/Piece.java similarity index 100% rename from src/main/java/org/hedgecode/chess/position/Piece.java rename to chesshog-core/src/main/java/org/hedgecode/chess/position/Piece.java diff --git a/src/main/java/org/hedgecode/chess/position/Position.java b/chesshog-core/src/main/java/org/hedgecode/chess/position/Position.java similarity index 100% rename from src/main/java/org/hedgecode/chess/position/Position.java rename to chesshog-core/src/main/java/org/hedgecode/chess/position/Position.java diff --git a/src/main/java/org/hedgecode/chess/position/PositionType.java b/chesshog-core/src/main/java/org/hedgecode/chess/position/PositionType.java similarity index 100% rename from src/main/java/org/hedgecode/chess/position/PositionType.java rename to chesshog-core/src/main/java/org/hedgecode/chess/position/PositionType.java diff --git a/src/main/java/org/hedgecode/chess/position/Positions.java b/chesshog-core/src/main/java/org/hedgecode/chess/position/Positions.java similarity index 100% rename from src/main/java/org/hedgecode/chess/position/Positions.java rename to chesshog-core/src/main/java/org/hedgecode/chess/position/Positions.java diff --git a/src/main/java/org/hedgecode/chess/position/Square.java b/chesshog-core/src/main/java/org/hedgecode/chess/position/Square.java similarity index 100% rename from src/main/java/org/hedgecode/chess/position/Square.java rename to chesshog-core/src/main/java/org/hedgecode/chess/position/Square.java diff --git a/src/main/java/org/hedgecode/chess/position/SquareSort.java b/chesshog-core/src/main/java/org/hedgecode/chess/position/SquareSort.java similarity index 100% rename from src/main/java/org/hedgecode/chess/position/SquareSort.java rename to chesshog-core/src/main/java/org/hedgecode/chess/position/SquareSort.java diff --git a/src/test/java/org/hedgecode/chess/AbstractPositionTest.java b/chesshog-core/src/test/java/org/hedgecode/chess/AbstractPositionTest.java similarity index 99% rename from src/test/java/org/hedgecode/chess/AbstractPositionTest.java rename to chesshog-core/src/test/java/org/hedgecode/chess/AbstractPositionTest.java index 6aa3f74..98ea11d 100644 --- a/src/test/java/org/hedgecode/chess/AbstractPositionTest.java +++ b/chesshog-core/src/test/java/org/hedgecode/chess/AbstractPositionTest.java @@ -16,9 +16,7 @@ package org.hedgecode.chess; -import java.io.File; import java.util.Iterator; -import java.util.LinkedList; import java.util.List; import java.util.Map; @@ -28,7 +26,6 @@ import org.apache.commons.configuration.SubnodeConfiguration; import org.junit.Test; -import org.hedgecode.chess.fen.FENBuilderTest; import org.hedgecode.chess.position.Castle; import org.hedgecode.chess.position.Color; import org.hedgecode.chess.position.ColorPiece; diff --git a/src/test/java/org/hedgecode/chess/AbstractXMLConfigTest.java b/chesshog-core/src/test/java/org/hedgecode/chess/AbstractXMLConfigTest.java similarity index 100% rename from src/test/java/org/hedgecode/chess/AbstractXMLConfigTest.java rename to chesshog-core/src/test/java/org/hedgecode/chess/AbstractXMLConfigTest.java diff --git a/pom.xml b/pom.xml index 55e3409..4e23027 100644 --- a/pom.xml +++ b/pom.xml @@ -16,10 +16,20 @@ ~ limitations under the License. --> - 4.0.0 + + chesshog-core + chesshog-format + chesshog-uci + chesshog-hedgefish + chesshog-dbetude + chesshog-qrcode + + org.hedgecode.maven lib-parent @@ -30,15 +40,15 @@ org.hedgecode.chess chesshog 0.1-SNAPSHOT - jar + pom - Hedgecode Chess + Hedgecode ChessHog - Hedgecode Chess. + Hedgecode ChessHog. 2018 - http://lib.hedgecode.org/${project.artifactId}/ + https://lib.hedgecode.org/${project.artifactId}/ scm:svn:http://svn.hedgecode.org/lib/${project.artifactId}/trunk/ @@ -48,7 +58,7 @@ JIRA - http://issues.hedgecode.org/browse/${issueKey}/component/${issueComponentId} + https://issues.hedgecode.org/browse/${issueKey}/component/${issueComponentId} -- 2.10.0