1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-26 19:37:39 +00:00

Fix a couple of future deprecations in Gradle

This commit is contained in:
Jonathan Coates
2023-10-19 18:28:15 +01:00
parent ae5a661a47
commit e67c94d1bd
5 changed files with 10 additions and 8 deletions

View File

@@ -185,7 +185,7 @@ val luaJavadoc by tasks.registering(Javadoc::class) {
source(project(":core").sourceSets.main.get().java)
source(project(":common").sourceSets.main.get().java)
setDestinationDir(buildDir.resolve("docs/luaJavadoc"))
destinationDir = layout.buildDirectory.dir("docs/luaJavadoc").get().asFile
classpath = sourceSets.main.get().compileClasspath
val options = options as StandardJavadocDocletOptions
@@ -237,7 +237,7 @@ tasks.assemble { dependsOn("jarJar") }
// Check tasks
tasks.test {
systemProperty("cct.test-files", buildDir.resolve("tmp/testFiles").absolutePath)
systemProperty("cct.test-files", layout.buildDirectory.dir("tmp/testFiles").getAbsolutePath())
}
val lintLua by tasks.registering(IlluaminateExec::class) {
@@ -266,7 +266,7 @@ val runGametest by tasks.registering(JavaExec::class) {
setRunConfig(minecraft.runs["gameTestServer"])
systemProperty("cctest.gametest-report", project.buildDir.resolve("test-results/$name.xml").absolutePath)
systemProperty("cctest.gametest-report", layout.buildDirectory.dir("test-results/$name.xml").getAbsolutePath())
}
cct.jacoco(runGametest)
tasks.check { dependsOn(runGametest) }