tried to implement build-cs108 task

This commit is contained in:
Jonas 2022-04-17 20:07:15 +02:00
parent cee7196566
commit bf31670ec1
3 changed files with 22 additions and 3 deletions

View File

@ -16,6 +16,7 @@ version '0.0.2'
mainClassName = 'ch.unibas.dmi.dbis.cs108.NightTrainToBudapest'
java {
//withJavadocJar()
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
@ -55,3 +56,21 @@ jar {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
tasks.register('build-cs108', Jar) {
manifest {
attributes(
'Main-Class': mainClassName
)
}
from {
configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
description 'Builds .jar & documentation. Or is supposed to do that, at least.'
doLast {
println('Hello world')
}
}

View File

@ -3,7 +3,7 @@ package ch.unibas.dmi.dbis.cs108.gamelogic;
import ch.unibas.dmi.dbis.cs108.gamelogic.klassenstruktur.Passenger;
/**
* Handles all communication Client to Server concerning games tate updates i.e. client a has voted
* Handles all communication Client to Server concerning gamestate updates i.e. client a has voted
* Maybe unnecessary, everything that is needed might already be implemented in ClientHandler.
* We might only need to extend the protocol and its parser.
*/
@ -12,7 +12,7 @@ public class ClientGameInfoHandler {
/**
* All messages that are used in VoteHandler
* TODO(Seraina&Alex): Adjust strings to be more meaningful
* TODO(Seraina-Alex): Adjust strings to be more meaningful
*/
//relevant:
public static final String ghostVoteRequest = "Vote on who to ghostify!";

View File

@ -57,7 +57,7 @@ public class Protocol {
* will use the clientHandler.setUsernameOnLogin() method to set this client's username to Poirot,
* and broadcast the announcement: {@code "Poirot has joined the Server"}. Also, it will set this
* clientHandler's loggedIn boolean to true, which could be used later to refuse access to users
* who haven't formally logged in using this command => //todo: shun non-logged-in users
* who haven't formally logged in using this command //todo: shun non-logged-in users
*/
public static final String clientLogin = "LOGIN";