Archived
1
0
Fork 0

Add ServerListInfoRequestEvent, switch from Gson to Moshi and fix tests

This commit is contained in:
Moritz Ruth 2020-08-14 12:40:14 +02:00
parent 81a39c2e96
commit 7dd7bd9e6c
No known key found for this signature in database
GPG key ID: AFD57E23E753841B
19 changed files with 229 additions and 94 deletions

View file

@ -1,5 +1,6 @@
plugins {
kotlin("jvm")
kotlin("kapt")
}
group = rootProject.group
@ -13,13 +14,22 @@ repositories {
val spekVersion = "2.0.12"
dependencies {
// Kotlin
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
implementation("com.google.code.gson:gson:2.8.6")
api("org.slf4j:slf4j-api:1.7.30")
api("io.netty:netty-buffer:4.1.50.Final")
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8")
// JSON
kapt("com.squareup.moshi:moshi-kotlin-codegen:1.9.3")
api("com.squareup.moshi:moshi:1.9.3")
// Logging
api("org.slf4j:slf4j-api:1.7.30")
// Netty
api("io.netty:netty-buffer:4.1.50.Final")
// Testing
testImplementation("io.strikt:strikt-core:0.26.1")
testImplementation("org.spekframework.spek2:spek-dsl-jvm:$spekVersion")
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:$spekVersion")