-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.gradle
76 lines (63 loc) · 1.71 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
plugins {
id "org.sonarqube" version "3.3"
}
def BUILD_NUMBER = project.hasProperty('BUILD_NUMBER') ? "$BUILD_NUMBER" : 'undef'
sonarqube {
properties {
property "sonar.projectKey", "tzachz_github-comment-counter"
property "sonar.organization", "tzachz"
property "sonar.host.url", "https://sonarcloud.io"
}
}
allprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'jacoco'
project.group = 'com.tzachz'
project.version = "0.1.$BUILD_NUMBER"
repositories {
mavenLocal()
mavenCentral()
}
test {
doFirst {
// see https://discuss.gradle.org/t/getting-classnotfoundexception-org-jacoco-agent-rt-internal-9dd1198-premain-with-1-7s-jacoco-plugin/1444/3
systemProperties['user.dir'] = workingDir
}
beforeTest { descriptor ->
logger.lifecycle("Running " + descriptor)
}
}
jacocoTestReport {
reports {
xml.enabled = true
csv.enabled = false
}
dependsOn test
}
}
subprojects { project ->
dependencies {
compile 'com.google.guava:guava:14.0.1'
compile 'joda-time:joda-time:2.2'
compile 'org.slf4j:slf4j-api:1.7.5'
testCompile 'org.hamcrest:hamcrest-library:1.3'
testCompile 'org.mockito:mockito-core:1.9.0'
testCompile('junit:junit:4.11') {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
}
}
dependencies {
compile project(':leaderboard-server')
}
idea {
project {
jdkName = '11'
}
}
idea.project.ipr {
withXml { provider ->
provider.node.component.find { it.@name == 'VcsDirectoryMappings' }.mapping.@vcs = 'Git'
}
}