added gui for server

This commit is contained in:
Clément
2025-03-04 19:11:21 +01:00
parent 5669859ac1
commit 7866984e19
7 changed files with 105 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ java {
}
javafx {
modules = ['javafx.graphics', 'javafx.controls', 'javafx.fxml' ]
modules = [ 'javafx.graphics', 'javafx.controls', 'javafx.fxml' ]
}
application {
@@ -75,4 +75,11 @@ tasks.register("client", JavaExec) {
mainClass.set("ChatAppClient")
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
}
tasks.register("serverGUI", JavaExec) {
group = "ChatAppGUI"
description = "Runs a GUI for the server"
mainClass.set('server.ServerGUI')
classpath = sourceSets.main.runtimeClasspath
}