From cf98d45d6a5340567ef65deeeb6198aac7614782 Mon Sep 17 00:00:00 2001 From: thomasmuller Date: Tue, 24 Jun 2025 10:14:44 +0200 Subject: [PATCH 1/2] pom aktualisiert --- schach/pom.xml | 66 ++++++++----------- .../chess/controller/GameController.java | 3 +- 2 files changed, 30 insertions(+), 39 deletions(-) diff --git a/schach/pom.xml b/schach/pom.xml index ab9e214..7e08e04 100644 --- a/schach/pom.xml +++ b/schach/pom.xml @@ -10,13 +10,12 @@ 0.0.1-SNAPSHOT schach - A simple schach. + A simple schach project http://www.example.com UTF-8 - 21 - 21 + 21 @@ -27,19 +26,22 @@ - + com.github.bhlangonijr chesslib 1.3.4 + + org.junit.jupiter junit-jupiter 5.10.2 test - + + org.mockito mockito-core @@ -50,14 +52,32 @@ + + + maven-compiler-plugin + 3.13.0 + + 21 + + + org.apache.maven.plugins maven-pmd-plugin 3.21.0 + + 17 + false + true + false rulesets/java/quickstart.xml + rulesets/java/basic.xml + rulesets/java/braces.xml + rulesets/java/unusedcode.xml + rulesets/java/imports.xml @@ -69,43 +89,12 @@ - - - maven-clean-plugin - 3.4.0 - - - maven-site-plugin - 3.12.1 - - - maven-project-info-reports-plugin - 3.6.1 - - - maven-resources-plugin - 3.3.1 - - - maven-compiler-plugin - 3.13.0 - + + maven-surefire-plugin 3.3.0 - - maven-jar-plugin - 3.4.2 - - - maven-install-plugin - 3.1.2 - - - maven-deploy-plugin - 3.1.2 - @@ -113,6 +102,7 @@ maven-project-info-reports-plugin + 3.6.1 diff --git a/schach/src/main/java/de/hs_mannheim/informatik/chess/controller/GameController.java b/schach/src/main/java/de/hs_mannheim/informatik/chess/controller/GameController.java index a30cccd..aa6d73f 100644 --- a/schach/src/main/java/de/hs_mannheim/informatik/chess/controller/GameController.java +++ b/schach/src/main/java/de/hs_mannheim/informatik/chess/controller/GameController.java @@ -25,7 +25,8 @@ public class GameController { GameEndCallback callback; private boolean gameOver = false; - private int selectedRow = -1, selectedCol = -1; + private int selectedRow = -1; + private int selectedCol = -1; private List highlightedFields = new ArrayList<>(); private boolean gameWasResignedOrDrawn = false; private GameMode gameMode; From cc18a20588d469b0bf76e4eae7c874cdadf37436 Mon Sep 17 00:00:00 2001 From: thomasmuller Date: Tue, 24 Jun 2025 10:47:00 +0200 Subject: [PATCH 2/2] pom gefixed --- schach/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schach/pom.xml b/schach/pom.xml index 7e08e04..5979df7 100644 --- a/schach/pom.xml +++ b/schach/pom.xml @@ -95,7 +95,7 @@ maven-surefire-plugin 3.3.0 - +