This repository has been archived by the owner on Sep 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (68 loc) · 1.87 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
76
77
78
79
80
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath "com.gradle:build-scan-plugin:1.16"
classpath "me.champeau.gradle:buildscan-recipes-plugin:0.2.3"
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.4.0.2513"
classpath "com.netflix.nebula:nebula-release-plugin:12.0.0"
}
}
apply plugin: "com.gradle.build-scan"
apply plugin: "me.champeau.buildscan-recipes"
apply plugin: "io.codearte.nexus-staging"
apply plugin: "org.sonarqube"
apply plugin: "nebula.release"
allprojects {
group = 'com.github.rahulsom'
}
subprojects {
repositories {
google()
mavenCentral()
}
apply plugin: 'checkstyle'
checkstyle {
configFile = rootProject.file('gradle/checkstyle/checkstyle.xml')
toolVersion = "7.6.1"
showViolations = false
maxWarnings = 0
maxErrors = 0
}
def theProject = project
def projectPath = theProject.name
while (theProject.parent != rootProject) {
projectPath = "${theProject.parent.name}-${projectPath}"
theProject = theProject.parent
}
sonarqube {
properties {
property 'sonar.moduleKey', "com.github.rahulsom:grooves:${projectPath}"
}
}
}
gradle.releasable.each {
tasks.release.dependsOn "grooves-${it}:uploadArchives"
}
project.afterEvaluate {
gradle.releasable.each {
project.tasks.findByName('closeRepository').mustRunAfter "grooves-${it}:uploadArchives"
}
if (!version.toString().endsWith('-SNAPSHOT')) {
tasks.release.dependsOn 'closeAndReleaseRepository'// , 'srcclr'
}
}
buildScan {
licenseAgreementUrl = 'https://gradle.com/terms-of-service'
licenseAgree = 'yes'
}
buildScanRecipes {
recipes 'git-commit', 'git-status', 'travis-ci', 'gc-stats'
}
nexusStaging {
delayBetweenRetriesInMillis = 10000
numberOfRetries = 30
}