Gradle Kotlin脚本中的扩展方法出现问题
我正在尝试为gradle配置Kotlin脚本。来自Gradle Kotlin脚本中的扩展方法出现问题,gradle,build.gradle,kotlin,kotlin-extension,Gradle,Build.gradle,Kotlin,Kotlin Extension,我正在尝试为gradle配置Kotlin脚本。来自build.gradle.kts的行: val deployTest = System.getProperty("deployTest").toBoolean() 运行: gradle clean build 它在我的本地工作站上运行良好,但在TeamCity上失败: IllegalStateException: Error type encountered: [ERROR : Type for (System.getProperty("de
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
。怎么了