我正在尝试使用 Kotlin 脚本进行 gradle 配置。线路来自build.gradle.kts
:
val deployTest = System.getProperty("deployTest").toBoolean()
跑步:
gradle clean build
它在我的本地工作站上运行良好,但在 TeamCity 上失败:
IllegalStateException: Error type encountered: [ERROR : Type for (System.getProperty("deployTest") as String).toBoolean()] (DeferredType)
deployTest
我的工作站和 TC 上都没有设置属性。在我的工作站上它返回false
。它出什么问题了?