From 38af64cdf075886f7271e1e8414af9237d33f242 Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Sun, 17 Oct 2021 16:27:25 +0200 Subject: [PATCH] Fix gradle run --- server/build.gradle | 5 +++++ server/src/main/java/fr/lnl/game/server/games/grid/Grid.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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(){