@@ -30,6 +30,7 @@ val discordIPCVersion: String by project
3030val classGraphVersion: String by project
3131val kotlinVersion: String by project
3232val ktorVersion: String by project
33+ val jacksonVersion: String by project
3334val mockkVersion: String by project
3435val spairVersion: String by project
3536val lwjglVersion: String by project
@@ -80,6 +81,7 @@ repositories {
8081}
8182
8283fabricApi {
84+ @Suppress(" UnstableApiUsage" )
8385 configureTests {
8486 modId = " ${base.archivesName} -tests"
8587 eula = true
@@ -173,7 +175,10 @@ dependencies {
173175 exclude(group = " org.slf4j" )
174176 }
175177 includeLib(" io.ktor:ktor-client-content-negotiation:$ktorVersion " )
176- includeLib(" io.ktor:ktor-serialization-gson:$ktorVersion " )
178+ includeLib(" io.ktor:ktor-serialization-jackson:$ktorVersion " )
179+ includeLib(" tools.jackson.core:jackson-core:$jacksonVersion " )
180+ includeLib(" tools.jackson.core:jackson-databind:$jacksonVersion " )
181+ includeLib(" tools.jackson.module:jackson-module-kotlin:$jacksonVersion " )
177182
178183 // Add mods
179184 modImplementation(" com.github.rfresh2:baritone-fabric:$minecraftVersion -SNAPSHOT" )
@@ -221,7 +226,7 @@ tasks {
221226
222227kotlin {
223228 compilerOptions {
224- freeCompilerArgs.addAll(" -Xcontext-parameters" , " -Xconsistent-data-class-copy-visibility" )
229+ freeCompilerArgs.addAll(" -Xcontext-parameters" , " -Xconsistent-data-class-copy-visibility" , " -Xannotation-default-target=param-property " )
225230 }
226231
227232 jvmToolchain(21 )
@@ -267,4 +272,4 @@ publishing {
267272 }
268273 }
269274 }
270- }
275+ }
0 commit comments