-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.gradle
More file actions
32 lines (29 loc) · 794 Bytes
/
build.gradle
File metadata and controls
32 lines (29 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
plugins {
id "org.sonarqube" version "2.6.2"
}
apply plugin: 'war'
// JDK 8
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
}
war {
archiveName 'gradle-web-app.war'
}
dependencies {
compile 'ch.qos.logback:logback-classic:1.1.3'
compile 'org.springframework:spring-webmvc:4.1.6.RELEASE'
compile 'javax.servlet:jstl:1.2'
}
sonarqube {
properties {
property 'sonar.host.url', 'http://localhost:9000'
//If you use token based authentication below line is sufficient
property 'sonar.login', '84a447e0ad03e4a04657e2f6ffc0577a68cee92b'
// If you want to use username & password use below two lines and comment above line
//property 'sonar.login', 'balaji'
//property 'sonar.password', 'password'
}
}