Skip to content

Commit af28b5d

Browse files
committed
chore(gradle): small dependency updates & kotlin opt in
1 parent ca362fc commit af28b5d

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

gradle/build.gradle.kts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ plugins {
1111
id("scripts-task")
1212

1313
id("com.github.ben-manes.versions") version "0.38.0"
14-
id("se.patrikerdes.use-latest-versions") version "0.2.15"
14+
id("se.patrikerdes.use-latest-versions") version "0.2.16"
1515
}
1616

1717
val gameName by extra { property("socha.gameName") as String }
@@ -251,13 +251,17 @@ subprojects {
251251
freeCompilerArgs = listOf("-Xjvm-default=all")
252252
}
253253
}
254+
255+
compileTestKotlin.get().kotlinOptions {
256+
freeCompilerArgs = freeCompilerArgs.plus("-Xopt-in=kotlin.RequiresOptIn")
257+
}
254258
}
255259
}
256260

257261
allprojects {
258262
repositories {
259-
jcenter()
260-
maven("http://dist.wso2.org/maven2")
263+
mavenCentral()
264+
maven("https://dist.wso2.org/maven2")
261265
}
262266

263267
if (this.name in documentedProjects) {

player/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ tasks {
9696
doLast {
9797
// required by gradle to distinguish the test build from
9898
execDir.resolve("settings.gradle").createNewFile()
99-
val command = arrayListOf(if(OperatingSystem.current() == OperatingSystem.WINDOWS) "./gradlew.bat" else "./gradlew",
99+
val command = arrayListOf(
100+
"./gradlew${if(OperatingSystem.current().isWindows) ".bat" else ""}",
100101
"shadowJar", "--quiet", "--offline")
101102
val process = ProcessBuilder(command).directory(execDir)
102103
.redirectOutput(execDir.resolve("player-shadowJar-build.log"))

sdk/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ configurations.archives.get().artifacts.removeIf { it.name == "testConfig" }
2727

2828
dependencies {
2929
api(kotlin("stdlib"))
30-
api("com.thoughtworks.xstream", "xstream", "1.4.15")
30+
api("com.thoughtworks.xstream", "xstream", "1.4.16")
3131
api("jargs", "jargs", "1.0")
3232
api("ch.qos.logback", "logback-classic", "1.2.3")
3333

0 commit comments

Comments
 (0)