diff --git a/server/build.gradle b/server/build.gradle index 0b31657..87df045 100644 --- a/server/build.gradle +++ b/server/build.gradle @@ -3,6 +3,11 @@ */ plugins { + id 'application' id 'fr.lnl.game.java-library-conventions' } +application { + mainClassName = 'fr.lnl.game.server.games.grid.Grid' +} + diff --git a/server/src/main/java/fr/lnl/game/server/games/grid/Grid.java b/server/src/main/java/fr/lnl/game/server/games/grid/Grid.java index 2781ba6..a40e373 100644 --- a/server/src/main/java/fr/lnl/game/server/games/grid/Grid.java +++ b/server/src/main/java/fr/lnl/game/server/games/grid/Grid.java @@ -15,7 +15,7 @@ public class Grid { public Grid(int x, int y){ this.x = x; this.y = y; - board = new HashMap, Triplet>(); + board = new HashMap<>(); } public void initGrid(){