forked from Tasssadar/MultiROMMgr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
52 lines (45 loc) · 1.51 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
mavenCentral()
maven { url "https://maven.google.com" }
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
}
}
allprojects {
repositories {
jcenter()
mavenCentral()
maven { url "https://maven.google.com" }
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
class GreetingTask extends DefaultTask {
}
task gradleUpdates(type: GreetingTask) {
doLast {
tasks.dependencyUpdates.execute()
println ''
group = "wrapper"
["nightly": "nightly",
"rc" : "release-candidate",
"current": "current"].each {
def label = it.value
def version = new groovy.json.JsonSlurper().parseText(new URL("https://services.gradle.org/versions/${label}").text)
if (version.empty) {
throw new GradleException("Cannot update wrapper to '${label}' version as there is currently no version of that label")
}
println " -${label} version: ${version.version} (downloadUrl: ${version.downloadUrl})"
}
}
}
subprojects { //check dependecies that may cause error contains -> ./gradlew -q allDeps --configuration releaseUnitTestCompileClasspath | grep ' -> ' -B 3
task allDeps(type: DependencyReportTask) {}
}