-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
52 lines (41 loc) · 1.16 KB
/
build.gradle
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
description = "Sample project to introduce Git, Gradle and CircleCI"
task wrapper(type: Wrapper) {
gradleVersion = '2.0'
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.sonarqube'
apply plugin: 'sonar-runner'
sonarqube {
properties {
property "sonar.projectName", "Dummy Project :: Sonar"
property "sonar.projectVersion", "1.0"
property "sonar.projectKey", "org.sonarqube:java-gradle-simple"
property "sonar.jacoco.reportPath", "${project.buildDir}/jacoco/test.exec"
property "sonar.host.url", "http://localhost:9000"
}
}
buildscript {
repositories {
maven {
url "http://repo1.maven.org/maven2/"
}
maven {
url "https://plugins.gradle.org/m2/"
}
mavenLocal()
}
dependencies {
classpath 'org.ajoberstar:gradle-jacoco:0.1.0'
classpath 'org.sonarqube.gradle:gradle-sonarqube-plugin:1.0'
}
}
repositories { mavenCentral() }
dependencies {
compile([
//'org.slf4j:slf4j-api:1.7.12',
'commons-collections:commons-collections:3.2',
'joda-time:joda-time:2.6'
])
testCompile([ 'junit:junit:4.+'])
}