gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 03:49:50 25 4
gpt4 key购买 nike

  • Gradle:2.13
  • bootstrap :1.3.5
  • Artifactory Gradle插件(org.jfrog.buildinfo:build-info-extractor-gradle):4.5.0

  • 这个项目已经 build 了一段时间。但是,现在我试图通过/ 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

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

    最佳答案

    事实证明直到Spring Boot 1.4.0才添加buildInfo()。天哪!

    关于gradle - 使用Artifactory Gradle插件时无法使Spring Boot的buildInfo()工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39715047/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com