[repo] Enable warnings as errors for Gradle Kotlin scripts
This commit is contained in:
committed by
Space Team
parent
ed8fc64257
commit
73f6316f27
@@ -1,4 +1,5 @@
|
|||||||
org.gradle.jvmargs=-Duser.country=US -Dfile.encoding=UTF-8
|
org.gradle.jvmargs=-Duser.country=US -Dfile.encoding=UTF-8
|
||||||
|
org.gradle.kotlin.dsl.allWarningsAsErrors=true
|
||||||
|
|
||||||
cacheRedirectorEnabled=true
|
cacheRedirectorEnabled=true
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ kotlin.incremental.useClasspathSnapshot=true
|
|||||||
|
|
||||||
org.gradle.parallel=true
|
org.gradle.parallel=true
|
||||||
org.gradle.caching=true
|
org.gradle.caching=true
|
||||||
|
org.gradle.kotlin.dsl.allWarningsAsErrors=true
|
||||||
|
|
||||||
# Please keep it in sync with buildSrc gradle.properties.
|
# Please keep it in sync with buildSrc gradle.properties.
|
||||||
# It's currently needed for proper configuration cache work, the reason will be investigated later
|
# It's currently needed for proper configuration cache work, the reason will be investigated later
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import com.github.gradle.node.npm.task.NpmTask
|
import com.github.gradle.node.npm.task.NpmTask
|
||||||
|
import com.github.gradle.node.variant.computeNodeExec
|
||||||
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
|
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
|
||||||
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinUsages
|
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinUsages
|
||||||
import org.jetbrains.kotlin.ideaExt.idea
|
import org.jetbrains.kotlin.ideaExt.idea
|
||||||
@@ -214,11 +215,7 @@ val generateTypeScriptJsExportOnFileTests by parallel(
|
|||||||
fun Test.setupNodeJs() {
|
fun Test.setupNodeJs() {
|
||||||
systemProperty("javascript.engine.path.NodeJs", com.github.gradle.node.variant.VariantComputer()
|
systemProperty("javascript.engine.path.NodeJs", com.github.gradle.node.variant.VariantComputer()
|
||||||
.let { variantComputer ->
|
.let { variantComputer ->
|
||||||
variantComputer
|
computeNodeExec(node, variantComputer.computeNodeBinDir(node.computedNodeDir)).get()
|
||||||
.computeNodeDir(node)
|
|
||||||
.let { variantComputer.computeNodeBinDir(it) }
|
|
||||||
.let { variantComputer.computeNodeExec(node, it) }
|
|
||||||
.get()
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,9 +31,9 @@ val ignoreTestFailures by extra(project.kotlinBuildProperties.ignoreTestFailures
|
|||||||
kotlin {
|
kotlin {
|
||||||
js(IR) {
|
js(IR) {
|
||||||
nodejs {
|
nodejs {
|
||||||
testTask {
|
testTask(Action {
|
||||||
enabled = false
|
enabled = false
|
||||||
}
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ plugins {
|
|||||||
kotlin {
|
kotlin {
|
||||||
js(IR) {
|
js(IR) {
|
||||||
nodejs {
|
nodejs {
|
||||||
testTask {
|
testTask(Action {
|
||||||
useMocha {
|
useMocha {
|
||||||
timeout = "10s"
|
timeout = "10s"
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,4 +2,6 @@ kotlin.build.gradlePlugin.version=0.0.39
|
|||||||
kotlin.options.suppressFreeCompilerArgsModificationWarning=true
|
kotlin.options.suppressFreeCompilerArgsModificationWarning=true
|
||||||
cacheRedirectorEnabled=true
|
cacheRedirectorEnabled=true
|
||||||
# Should be in sync with ":kotlin-daemon-config" project convention script configuration
|
# Should be in sync with ":kotlin-daemon-config" project convention script configuration
|
||||||
kotlin.daemon.jvmargs=-Xmx3g
|
kotlin.daemon.jvmargs=-Xmx3g
|
||||||
|
|
||||||
|
org.gradle.kotlin.dsl.allWarningsAsErrors=true
|
||||||
|
|||||||
Reference in New Issue
Block a user