문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
gradle:sonar [2014/06/11 10:04] kwon37xi |
— (현재) | ||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| - | ====== Gradle Sonar ====== | ||
| - | * [[http:// | ||
| - | |||
| - | ===== 기본 프라퍼티 ===== | ||
| - | * '' | ||
| - | |||
| - | < | ||
| - | apply plugin: ' | ||
| - | |||
| - | sonarRunner { | ||
| - | sonarProperties { | ||
| - | property " | ||
| - | property " | ||
| - | property " | ||
| - | property " | ||
| - | property " | ||
| - | property " | ||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | ===== 분석에서 특정 클래스 제외 ===== | ||
| - | * '' | ||
| - | sonarRunner { | ||
| - | sonarProperties { | ||
| - | property ' | ||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | * 이를 함수로 만들어 두고, 각 프로젝트에서 호출하도록 한다.< | ||
| - | |||
| - | def excludeFromSonar(List exclusions) { | ||
| - | project.sonarRunner { | ||
| - | sonarProperties { | ||
| - | property ' | ||
| - | } | ||
| - | } | ||
| - | } | ||
| - | |||
| - | // 배열 기반 호출 | ||
| - | excludeFromSonar([' | ||
| - | </ | ||
| - | |||
| - | ===== jacoco ===== | ||
| - | * [[gradle: | ||
| - | |||
| - | ===== 명령행 옵션 ===== | ||
| - | * '' | ||
| - | |||
| - | <code sh> | ||
| - | gradle sonarRunner -Dsonar.host.url=http:// | ||
| - | </ | ||
| - | |||