Gradle Review (9)-Perform sonarrunner tasks

Source: Internet
Author: User
Tags deprecated locale

Sonarrunner {
	Sonarproperties {property
		' Sonar.host.url ', ' http://localhost:9002/' property
		' Sonar.jdbc.url "," Jdbc:mysql://localhost:3306/sonar "Property
		" Sonar.jdbc.driverClassName "," Com.mysql.jdbc.Driver "
		sonar.jdbc.username", "sonar" property
		"Sonar.jdbc.password", "sonar"
	}
}

Because today the network is very force, so very carefree run out:


D:\eclipse\workspare\testng_gradl>gradle Sonarrunner:compilejava up-to-date:p rocessresources UP-TO-DATE: Classes Up-to-date:compiletestjava up-to-date:p rocesstestresources up-to-date:testclasses up-to-date:test Up-to-date:sonarrunner Download https://repo1.maven.org/maven2/org/codehaus/sonar/runner/sonar-runner-d ist/2.3/ Sonar-runner-dist-2.3.jar SonarQube Runner 2.3 Java 1.7.0_45 Oracle Corporation (32-bit) Windows 7 6.1 x86 Info:runner Co Nfiguration file:none info:project Configuration File:d:\eclipse\workspare\testng_gradl\build\tmp\so narRunner\ Sonar-project.properties info:default locale: "ZH_CN", Source code encoding: "GBK" (analysis is platform dependent) INFO : Work Directory:d:\eclipse\workspare\testng_gradl\build\sonar info:sonarqube Server 5.0 09:40:07.203 info-load Globa
L Referentials ... 
09:40:07.530 info-load Global referentials done:327 ms 09:40:07.530 Info-user Cache:c:\users\hui.qian\.sonar\cache 09:40:07.546 Info-install plugins 09:40:08.435 info-install JDBC Driver 09:40:08.451 info-create jdbc DataSource for Jdbc:mysql://localhost:3306/sona R 09:40:1
0.323 info-initializing Hibernate 09:40:14.722 info-load Project Referentials ...  09:40:15.268 info-load Project Referentials done:546 MS 09:40:15.268 info-load Project Settings 09:40:16.173 INFO
-Loading Technical Debt model ... 09:40:16.235 info-loading Technical Debt Model DONE:62 MS 09:40:16.282 info-apply Project exclusions 09:40:16.282 W
ARN-' sonar.dynamicanalysis ' is deprecated since version 4.3 and should no longer be used. 09:40:16.828 WARN-SCM provider Autodetection failed. No SCM provider claims T o support this project.
Please use the Sonar.scm.provider to define SCM of your proj ect. 09:40:16.843 info--------------Scan testng_gradl 09:40:16.843 info-load module Settings 09:40:17.733 Warn-sonar . binaries and sonar.libraries is deprecated since ver sion 2.5 of Sonar-java-plugin, please use sonar.java.binaries and S Onar.javA.lib raries instead 09:40:17.733 info-loading rules ... 09:40:17.982 info-loading rules done:249 ms 09:40:18.013 info-configure Maven plugins 09:40:18.107 info-no quali
Ty Gate is configured. 09:40:18.123 info-base dir:d:\eclipse\workspare\testng_gradl 09:40:18.138 info-working dir:d:\eclipse\workspare\te Stng_gradl\build\sonar 09:40:18.138 info-source paths:src/main/resources, Src/main/java 09:40:18.138 info-test Path S:src/test/resources, Src/test/java 09:40:18.138 info-binary dirs:build/classes/main, Build/resources/main 09:40:18. 138 Info-source ENCODING:GBK, default locale:zh_cn 09:40:18.138 info-index files 09:40:18.606 INFO-6 files Inde
Xed 09:40:19.090 info-quality profile for Java:sonar to 09:40:19.105 info-sensor javasquidsensor ...
09:40:19.651 Info-java Main Files AST Scan ...  09:40:19.667 INFO-2 source files to be analyzed 09:40:20.041 Info-java Main files AST Scan done:390 ms 09:40:20.041 Info-java Bytecode Scan ...
09:40:20.041 INFO-2/2 source files analyzed 09:40:20.151 Info-java bytecode scan done:110 ms 09:40:20.151 INFO-
Java Test Files AST Scan ... 09:40:20.151 INFO-4 source files to be analyzed 09:40:20.182 Info-java Test files AST Scan done:31 ms 09:40:20.182
INFO-4/4 source files analyzed 09:40:20.197 info-package design analysis ... 09:40:20.275 info-package Design Analysis done:78 Ms 09:40:20.307 Info-sensor javasquidsensor done:1202 Ms 09:40:2
0.322 info-sensor qprofilesensor ...
09:40:20.338 info-sensor qprofilesensor done:16 ms 09:40:20.338 info-sensor Initialopenissuessensor ...
09:40:20.463 info-sensor initialopenissuessensor done:125 ms 09:40:20.463 info-sensor ProjectLinksSensor ...
09:40:20.494 info-sensor projectlinkssensor done:31 ms 09:40:20.494 info-sensor Versioneventssensor ...
09:40:20.556 info-sensor versioneventssensor done:62 ms 09:40:20.556 info-sensor Filehashsensor ... 09:40:20.556 Info-sensor Filehashsensor Done:0 ms 09:40:20.556 Info-sensor Surefiresensor ... 09:40:20.556 info-parsing D:\eclipse\workspare\TestNG_gradl\build\test-result s 09:40:20.775 info-sensor Surefiresen
Sor done:219 ms 09:40:20.775 info-sensor Jacocooverallsensor ...  09:40:20.806 info-analysing D:\eclipse\workspare\TestNG_gradl\build\sonar\jac oco-overall.exec 09:40:20.853 info-no
Information about coverage per test.
09:40:20.853 info-sensor jacocooverallsensor done:78 ms 09:40:20.853 info-sensor SCM Sensor ... 09:40:20.853 info-no SCM System was detected.
You can use the ' Sonar.scm.prov Ider ' property to explicitly specify it.
09:40:20.853 info-sensor SCM Sensor done:0 ms 09:40:20.853 info-sensor Jacocosensor ... 09:40:20.853 info-analysing D:\eclipse\workspare\TestNG_gradl\build\doctor\do ctorq.exec 09:40:20.868 info-no Inform
ation about coverage per test.
09:40:20.868 info-sensor jacocosensor done:15 ms 09:40:20.868 info-sensor CPD Sensor ... 09:40:20.868 Info-javacpdeNgine is used for Java 09:40:20.868 info-cross-project analysis disabled 09:40:20.915 info-sensor CPD Sensor done:4
7 ms 09:40:21.523 Info-execute Decorators ... 09:40:21.711 info-store results in database 09:40:22.725 info-analysis successful, can browse Http://localhost:9  002/D Ashboard/index/testng_gradl 09:40:22.725 Info-note That's you'll be able to access the updated dashboard once the
Server has processed the submitted analysis report. 09:40:22.725 info-executing Post-job class Org.sonar.plugins.core.issue.notif ication. Sendissuenotificationspostjob Info:------------------------------------------------------------------------Info : Execution SUCCESS INFO:------------------------------------------------------------------------Total time: 17.706s Final memory:10m/130m INFO:------------------------------------------------------------------------BUILD Successful Total time:29.671 secs d:\eclipse\workspare\testng_gradl>


Above are the steps to perform the entire process of sonarrunner in Gradle. When we're done, we'll open the sonar home page and we'll look at the information about the project we just analyzed.






Excellent Resource recommendation

Address

Testerhome

http://testerhome.com/

Heaven Zhuhai Branch Rudder

Http://blog.csdn.net/zhubaitian


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.