-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
61 lines (51 loc) · 1.17 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.ben-manes:gradle-versions-plugin:0.13.+'
}
}
plugins {
id "org.sonarqube" version "2.6.2"
}
/**
* Get the name of the working branch of the project
*
* @return Name of the working branch
*/
def getWorkingBranch() {
// Triple double-quotes for the breaklines
def workingBranch = """git --git-dir=${rootDir}/.git
--work-tree=${rootDir}
rev-parse --abbrev-ref HEAD""".execute().text.trim()
logger.debug("Working branch: " + workingBranch)
return workingBranch
}
version = '0.4.7'
sonarqube {
// branch = "develop"
properties {
property "sonar.branch", getWorkingBranch()
property "sonar.links.issue", "http://moreno.ga/bugs"
property "sonar.links.homepage", "http://moreno.ga"
}
}
apply plugin: 'com.github.ben-manes.versions'
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
// Log of each module
compile 'org.slf4j:slf4j-api:1.6.+'
runtime 'ch.qos.logback:logback-classic:1.1.+'
// Test
testCompile group: 'junit', name: 'junit', version: '4.+'
}
sourceCompatibility = 1.6
}