<bdo id='umGg6'></bdo><ul id='umGg6'></ul>
    <legend id='umGg6'><style id='umGg6'><dir id='umGg6'><q id='umGg6'></q></dir></style></legend>

    1. <i id='umGg6'><tr id='umGg6'><dt id='umGg6'><q id='umGg6'><span id='umGg6'><b id='umGg6'><form id='umGg6'><ins id='umGg6'></ins><ul id='umGg6'></ul><sub id='umGg6'></sub></form><legend id='umGg6'></legend><bdo id='umGg6'><pre id='umGg6'><center id='umGg6'></center></pre></bdo></b><th id='umGg6'></th></span></q></dt></tr></i><div id='umGg6'><tfoot id='umGg6'></tfoot><dl id='umGg6'><fieldset id='umGg6'></fieldset></dl></div>

    2. <tfoot id='umGg6'></tfoot>

      <small id='umGg6'></small><noframes id='umGg6'>

      1. 不推荐使用属性“sonar.jacoco.reportPath".请改用“sonar.jacoco.repor

        Property #39;sonar.jacoco.reportPath#39; is deprecated. Please use #39;sonar.jacoco.reportPaths#39; instead(不推荐使用属性“sonar.jacoco.reportPath.请改用“sonar.jacoco.reportPaths)

            <tbody id='buEQT'></tbody>
        1. <tfoot id='buEQT'></tfoot>

            <small id='buEQT'></small><noframes id='buEQT'>

            <legend id='buEQT'><style id='buEQT'><dir id='buEQT'><q id='buEQT'></q></dir></style></legend>
              <bdo id='buEQT'></bdo><ul id='buEQT'></ul>
                  <i id='buEQT'><tr id='buEQT'><dt id='buEQT'><q id='buEQT'><span id='buEQT'><b id='buEQT'><form id='buEQT'><ins id='buEQT'></ins><ul id='buEQT'></ul><sub id='buEQT'></sub></form><legend id='buEQT'></legend><bdo id='buEQT'><pre id='buEQT'><center id='buEQT'></center></pre></bdo></b><th id='buEQT'></th></span></q></dt></tr></i><div id='buEQT'><tfoot id='buEQT'></tfoot><dl id='buEQT'><fieldset id='buEQT'></fieldset></dl></div>

                  本文介绍了不推荐使用属性“sonar.jacoco.reportPath".请改用“sonar.jacoco.reportPaths"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  不推荐使用属性sonar.jacoco.reportPath".请用'sonar.jacoco.reportPaths' 代替.

                  Property 'sonar.jacoco.reportPath' is deprecated. Please use 'sonar.jacoco.reportPaths' instead.

                  我在通过 Gradle 运行 SonarQube 时不断收到此消息,并且在整个多模块项目中甚至一次都没有出现reportPath"这个短语.我什至将 sonarqube 属性放在 allprojects 下,以覆盖可能存在的任何默认值.有关如何摆脱此错误的任何提示?

                  I keep getting this message when running SonarQube through Gradle and the phrase "reportPath" does not even appear even once in the entire multi-module project. I even put the sonarqube property under allprojects to override any defaults that may be there. Any tips on how I can get rid of this error?

                  我正在使用:

                  allprojects {
                      sonarqube {
                          properties {
                              property "sonar.jacoco.reportPaths", "${project.buildDir}/jacoco/test.exec"
                          }
                      }
                  }
                  

                  编辑 1:

                  Gradle 包装器 3.1

                  Gradle wrapper 3.1

                  我在 build.gradle 的根目录中使用它

                  Am using this in the root of build.gradle

                  plugins {
                      id "jacoco"
                      id "org.sonarqube" version "2.5"
                  }
                  

                  并尝试了您的建议

                  allprojects {
                      sonarqube {
                          properties {
                              property "sonar.jacoco.reportPath", ""
                              property "sonar.jacoco.reportPaths", "${project.buildDir}/jacoco/test.exec"
                          }
                      }
                  }
                  

                  没有骰子,你怎么看?

                  推荐答案

                  问题是,你使用的是哪个版本的 sonarQube gradle 插件:https://docs.sonarqube.org/display/SCAN/分析+with+SonarQube+Scanner+for+Gradle

                  The question is, which version of the sonarQube gradle plugin you are using: https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Gradle

                  sonarqube gradle 插件默认设置一些值,例如.如果您使用 JaCoCo,它可能会自动添加该字段,除了 groovy 字段.

                  The sonarqube gradle plugin sets some values per default, eg. if you use JaCoCo, which is probably the case, it automatically adds that field, besides the groovy one too.

                  所以一般来说,你需要等待sonarqube gradle插件的更新,它摆脱了这个,并且正在使用其他配置值.

                  So generally speaking, you need to wait for an update of the sonarqube gradle plugin, which gets rid of this, and is using the other config value.

                  也许您也可以尝试覆盖该设置,方法是将其设置为空,例如 sonar.jacoco.reportPath=

                  Maybe you can also try to override the setting, by setting it to empty like sonar.jacoco.reportPath=

                  这篇关于不推荐使用属性“sonar.jacoco.reportPath".请改用“sonar.jacoco.reportPaths"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)
                    • <tfoot id='WLPCu'></tfoot>

                        <legend id='WLPCu'><style id='WLPCu'><dir id='WLPCu'><q id='WLPCu'></q></dir></style></legend>

                          <bdo id='WLPCu'></bdo><ul id='WLPCu'></ul>

                            <tbody id='WLPCu'></tbody>
                        • <i id='WLPCu'><tr id='WLPCu'><dt id='WLPCu'><q id='WLPCu'><span id='WLPCu'><b id='WLPCu'><form id='WLPCu'><ins id='WLPCu'></ins><ul id='WLPCu'></ul><sub id='WLPCu'></sub></form><legend id='WLPCu'></legend><bdo id='WLPCu'><pre id='WLPCu'><center id='WLPCu'></center></pre></bdo></b><th id='WLPCu'></th></span></q></dt></tr></i><div id='WLPCu'><tfoot id='WLPCu'></tfoot><dl id='WLPCu'><fieldset id='WLPCu'></fieldset></dl></div>

                          <small id='WLPCu'></small><noframes id='WLPCu'>