From 21574a785d2b70917000b47d6216580606e1d04e Mon Sep 17 00:00:00 2001
From: arnaudlabourel <arnaud.labourel@univ-amu.fr>
Date: Mon, 2 Oct 2023 09:56:36 +0200
Subject: [PATCH] Updated gradle config 2023

---
 build.gradle                             | 19 ++++++++++++-------
 gradle/wrapper/gradle-wrapper.properties |  2 +-
 2 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/build.gradle b/build.gradle
index 0c3973d..5ea6ae9 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,10 +1,11 @@
 plugins {
+    id 'java'
     id 'application'
-    id "org.openjfx.javafxplugin" version "0.0.13"
+    id "org.openjfx.javafxplugin" version "0.0.14"
 }
 
 javafx {
-    version = "18.0.2"
+    version = "20"
     modules = [ 'javafx.controls', 'javafx.fxml' ]
 }
 
@@ -13,14 +14,18 @@ repositories {
 }
 
 dependencies {
-    testImplementation('org.junit.jupiter:junit-jupiter-api:5.9.0',
-            'org.assertj:assertj-core:3.23.1')
-    testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine:5.9.0')
+    testRuntimeOnly("org.junit.platform:junit-platform-launcher") {
+        because("Only needed to run tests in a version of IntelliJ IDEA that bundles older versions")
+    }
+    testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
+    testImplementation("org.assertj:assertj-core:3.24.2")
+    testImplementation("org.junit.jupiter:junit-jupiter:5.10.0")
 }
 
 test {
     useJUnitPlatform()
 }
+
 application {
-    mainClassName = "main.MainApp"
-}
\ No newline at end of file
+    mainClass.set("main.MainApp")
+}
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 2d2fd7c..1b298ae 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,5 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
\ No newline at end of file
-- 
GitLab