Skip to content

Commit

Permalink
chore(gradle): small dependency updates & kotlin opt in
Browse files Browse the repository at this point in the history
  • Loading branch information
xeruf committed May 6, 2021
1 parent ca362fc commit af28b5d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
10 changes: 7 additions & 3 deletions gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
id("scripts-task")

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

val gameName by extra { property("socha.gameName") as String }
Expand Down Expand Up @@ -251,13 +251,17 @@ subprojects {
freeCompilerArgs = listOf("-Xjvm-default=all")
}
}

compileTestKotlin.get().kotlinOptions {
freeCompilerArgs = freeCompilerArgs.plus("-Xopt-in=kotlin.RequiresOptIn")
}
}
}

allprojects {
repositories {
jcenter()
maven("http://dist.wso2.org/maven2")
mavenCentral()
maven("https://dist.wso2.org/maven2")
}

if (this.name in documentedProjects) {
Expand Down
3 changes: 2 additions & 1 deletion player/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ tasks {
doLast {
// required by gradle to distinguish the test build from
execDir.resolve("settings.gradle").createNewFile()
val command = arrayListOf(if(OperatingSystem.current() == OperatingSystem.WINDOWS) "./gradlew.bat" else "./gradlew",
val command = arrayListOf(
"./gradlew${if(OperatingSystem.current().isWindows) ".bat" else ""}",
"shadowJar", "--quiet", "--offline")
val process = ProcessBuilder(command).directory(execDir)
.redirectOutput(execDir.resolve("player-shadowJar-build.log"))
Expand Down
2 changes: 1 addition & 1 deletion sdk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ configurations.archives.get().artifacts.removeIf { it.name == "testConfig" }

dependencies {
api(kotlin("stdlib"))
api("com.thoughtworks.xstream", "xstream", "1.4.15")
api("com.thoughtworks.xstream", "xstream", "1.4.16")
api("jargs", "jargs", "1.0")
api("ch.qos.logback", "logback-classic", "1.2.3")

Expand Down

0 comments on commit af28b5d

Please sign in to comment.