-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
36 lines (32 loc) · 888 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
32
33
34
35
36
// Top-level build file where you can add configuration options common to all sub-projects/modules.
ext {
// sdk/java/com/deploygate/sdk/HostAppTest.java needs to be changed for a new release
releaseVersion = '4.6.1'
}
buildscript {
repositories {
mavenCentral()
google()
gradlePluginPortal()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath 'com.project.starter:easylauncher:5.0.1'
}
}
allprojects {
repositories {
mavenCentral()
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task verifyReleaseVersion() {
doLast {
if (project.ext.releaseVersion != System.getenv("RELEASE_VERSION")) {
throw new GradleException("${project.ext.releaseVersion} does not equal to ${System.getenv("RELEASE_VERSION")}")
}
}
}