我正在尝试使用Kotlin脚本进行gradle配置。来自find . -type f -name "* *" | while read file; do mv "$file" ${file// /_}; done
的行:
build.gradle.kts
运行:
val deployTest = System.getProperty("deployTest").toBoolean()
它在我的本地工作站上运行良好但在TeamCity上失败:
gradle clean build
我的工作站或TC上未设置属性IllegalStateException: Error type encountered: [ERROR : Type for (System.getProperty("deployTest") as String).toBoolean()] (DeferredType)
。在我的工作站上,它返回deployTest
。怎么了?