使用 Artifactory Gradle 插件时无法使 Spring Boot 的 buildInfo() 工作

Cannot get Spring Boot's buildInfo() to work when Artifactory Gradle plugin is used

这个项目已经建立了一段时间。但是,现在我正在尝试获取一些额外的构建信息以通过 /info 端点显示,因此,根据 the docs,我添加了:

springBoot {
    buildInfo()
}

现在似乎与 Artifactory Gradle 插件存在某种冲突:

Caused by: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: org.jfrog.gradle.plugin.artifactory.dsl.DoubleDelegateWrapper(org.jfrog.build.extractor.clientConfiguration.ArtifactoryClientConfiguration$BuildInfoHandler)
    at org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention.buildInfo(ArtifactoryPluginConvention.groovy:64)
    at org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention.invokeMethod(ArtifactoryPluginConvention.groovy)
    at org.gradle.api.internal.BeanDynamicObject$GroovyObjectAdapter.invokeMethod(BeanDynamicObject.java:279)
    at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:130)
    at org.gradle.api.internal.plugins.DefaultConvention$ExtensionsDynamicObject.invokeMethod(DefaultConvention.java:212)
    at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:150)
    at org.gradle.groovy.scripts.BasicScript.methodMissing(BasicScript.java:79)
    at build_do1tse3u3lgd8dbntr9ir9lk6$_run_closure5.doCall(/Users/jbisotti/sandbox/fusion/fusion-eureka-service/build.gradle:76)
    at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:67)
    at org.gradle.api.internal.plugins.ExtensionsStorage$ExtensionHolder.configure(ExtensionsStorage.java:145)
    at org.gradle.api.internal.plugins.ExtensionsStorage.configureExtension(ExtensionsStorage.java:69)
    at org.gradle.api.internal.plugins.DefaultConvention$ExtensionsDynamicObject.invokeMethod(DefaultConvention.java:207)
    at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:150)
    at org.gradle.groovy.scripts.BasicScript.methodMissing(BasicScript.java:79)
    at build_do1tse3u3lgd8dbntr9ir9lk6.run(/Users/jbisotti/sandbox/fusion/fusion-eureka-service/build.gradle:75)
    at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:91)
    ... 50 more

我不确定这三个嫌疑人中的哪一个有过错,也不知道如何解决。任何帮助将不胜感激!

原来 buildInfo() 直到 Spring Boot 1.4.0 才被添加。哦!