tried to implement build-cs108 task
This commit is contained in:
parent
cee7196566
commit
bf31670ec1
19
build.gradle
19
build.gradle
@ -16,6 +16,7 @@ version '0.0.2'
|
|||||||
mainClassName = 'ch.unibas.dmi.dbis.cs108.NightTrainToBudapest'
|
mainClassName = 'ch.unibas.dmi.dbis.cs108.NightTrainToBudapest'
|
||||||
|
|
||||||
java {
|
java {
|
||||||
|
//withJavadocJar()
|
||||||
toolchain {
|
toolchain {
|
||||||
languageVersion = JavaLanguageVersion.of(11)
|
languageVersion = JavaLanguageVersion.of(11)
|
||||||
}
|
}
|
||||||
@ -55,3 +56,21 @@ jar {
|
|||||||
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
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')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -12,7 +12,7 @@ public class ClientGameInfoHandler {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* All messages that are used in VoteHandler
|
* 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:
|
//relevant:
|
||||||
public static final String ghostVoteRequest = "Vote on who to ghostify!";
|
public static final String ghostVoteRequest = "Vote on who to ghostify!";
|
||||||
|
|||||||
@ -57,7 +57,7 @@ public class Protocol {
|
|||||||
* will use the clientHandler.setUsernameOnLogin() method to set this client's username to Poirot,
|
* 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
|
* 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
|
* 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";
|
public static final String clientLogin = "LOGIN";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user