-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
31 lines (27 loc) · 947 Bytes
/
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
allprojects {
repositories {
ivy {
ivyPattern "${rootProject.projectDir}/../ivy/[organisation]/[module]-ivy-[revision].xml"
artifactPattern "${rootProject.projectDir}/../ivy/[organisation]/[module]-[revision](-[classifier]).[ext]"
}
}
}
ext.sonarEnabled = {
JavaVersion.current() >= JavaVersion.VERSION_1_8
}
if (!sonarEnabled()) {
logger.warn('WARNING: Sonarqube analysis cannot be executed with JAVA 7')
}
configurations { scripts }
dependencies {
scripts group: 'com.pega.decision.build', name: 'dsm-project', version: 'LATEST-SNAPSHOT', ext: 'gradle'
scripts group: 'com.pega.decision.build', name: 'sonar', version: 'LATEST-SNAPSHOT', ext: 'gradle'
}
configurations.scripts.resolve().each {
if (it.name.contains("sonar-LATEST-SNAPSHOT.gradle") && (sonarEnabled())) {
apply from: it
}
else if (!it.name.contains("sonar-LATEST-SNAPSHOT.gradle")) {
apply from: it
}
}