无法在 gradle 中禁用 flyway 的 placeholderReplacement?

Can't disable placeholderReplacement for flyway in gradle?

简单的问题。

我正在尝试禁用 flyway 中的 placeholderReplacement。我正在使用 gradle.

我的配置中有这个:

flyway {
    placeholderReplacement = false
    outOfOrder = true
    locations=['filesystem:./db/migration']
    ...
}

当我这样做时,出现以下错误:

Error occurred while executing flywayMigrate
  No signature of method: org.flywaydb.core.Flyway.setPlaceholderReplacement() is applicable for argument types: (java.lang.String) values: [false]
  Possible solutions: setPlaceholderReplacement(boolean), isPlaceholderReplacement()

我是 gradle 和 groovy 的新手,但我不知道如何解决这个问题。我尝试在 属性 上添加单引号和双引号并更改大小写。还尝试将 "false" 显式转换为布尔值。

除此之外,我一筹莫展。我将其他布尔属性设置得很好,例如 outOfOrder,但它只会在 placeholderReplacement 上爆炸,这让我认为这可能是 flyway 方面的问题。我正在按照 flyway 网站 line for line 中的示例进行操作。

有什么想法吗?

这是一个已知问题 (https://github.com/flyway/flyway/issues/1001),已在 4.0 中修复(本月到期)。