在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):SonarSource/sonar-scanner-gradle开源软件地址(OpenSource Url):https://github.com/SonarSource/sonar-scanner-gradle开源编程语言(OpenSource Language):Java 82.2%开源软件介绍(OpenSource Introduction):SonarQube Scanner for GradleUser documentationhttps://redirect.sonarsource.com/doc/gradle.html Have Question or Feedback?For support questions ("How do I?", "I got this error, why?", ...), please head to the SonarSource forum. There are chances that a question similar to yours has already been answered. Be aware that this forum is a community, so the standard pleasantries ("Hi", "Thanks", ...) are expected. And if you don't get an answer to your thread, you should sit on your hands for at least three days before bumping it. Operators are not standing by. :-) ContributingIf you would like to see a new feature, please create a new thread in the forum "Suggest new features". Please be aware that we are not actively looking for feature contributions. The truth is that it's extremely difficult for someone outside SonarSource to comply with our roadmap and expectations. Therefore, we typically only accept minor cosmetic changes and typo fixes. With that in mind, if you would like to submit a code contribution, please create a pull request for this repository. Please explain your motives to contribute this change: what problem you are trying to fix, what improvement you are trying to make. Make sure that you follow our code style and all tests are passing (Travis build is executed for each pull request). Developer documentationHow the plugin worksWhen the plugin is applied to a project, it will add to that project the SonarQube task. It will also add to the project and all it's subprojects the SonarQube extension.
For multi-module projects, the plugin will only apply to the first project where it gets called. The goal is to allow the usage of SonarQube extension
The SonarQube task
The SonarQube task has the name Using the plugin directly in a project (no need to build/install it in advance)In the target project, apply as usual:
Run with:
Debugging the pluginSee the previous point about including the plugin's build when building a target project. To debug, simple add the parameter:
Now debug remotely by connecting to port 5005. Install a SNAPSHOT in local Maven repository
Using the plugin SNAPSHOT previously installed in local Maven repositorybuildscript {
repositories {
mavenCentral()
mavenLocal()
}
dependencies { classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:<THE VERSION>' }
}
apply plugin: 'org.sonarqube' Release and deploy on Gradle plugin repositoryhttps://plugins.gradle.org/docs/publish-plugin
LicenseCopyright 2011-2022 SonarSource. Licensed under the GNU Lesser General Public License, Version 3.0) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论