46 lines
1022 B
Groovy
46 lines
1022 B
Groovy
plugins {
|
|
id 'java'
|
|
id 'idea'
|
|
id "org.sonarqube" version "3.2.0"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
jcenter()
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
|
|
maxParallelForks = 1
|
|
}
|
|
|
|
var mainClassName = "uulm.teamname.marvelous.server.Server"
|
|
|
|
jar {
|
|
manifest {
|
|
attributes "Main-Class": "$mainClassName"
|
|
}
|
|
|
|
from {
|
|
configurations.runtimeClasspath.collect {it.isDirectory() ? it : zipTree(it) }
|
|
}
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':Gamelib')
|
|
|
|
implementation "org.java-websocket:Java-WebSocket:1.5.1"
|
|
implementation "org.tinylog:tinylog-api:2.4.0-M1"
|
|
implementation "org.tinylog:tinylog-impl:2.4.0-M1"
|
|
implementation "com.beust:jcommander:1.81"
|
|
|
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:5.8.0-M1"
|
|
testImplementation "org.mockito:mockito-all:2.0.2-beta"
|
|
testImplementation "org.assertj:assertj-core:3.19.0"
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.8.0-M1"
|
|
}
|