-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathbuild.gradle
61 lines (53 loc) · 1.71 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 {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
}
}
ext {
runningOnJenkins = System.getenv('JENKINS_URL') != null
nexusReleasesRepository = getEnvOrProperty('NEXUS_RELEASES_REPOSITORY')
nexusSnapshotsRepository = getEnvOrProperty('NEXUS_SNAPSHOTS_REPOSITORY')
nexusUsername = getEnvOrProperty('NEXUS_USERNAME')
nexusPassword = getEnvOrProperty('NEXUS_PASSWORD')
developers = [
[
id : 'laenger',
name : 'Christian Langer',
email: '[email protected]'
]
]
scm = [
connection : 'scm:git:[email protected]:laenger/ViewPagerBottomSheet.git',
developerConnection: 'scm:git:[email protected]:laenger/ViewPagerBottomSheet.git',
url : 'https://github.com/laenger/ViewPagerBottomSheet'
]
compileSdkVersion = 29
buildToolsVersion = '29.0.0'
targetSdkVersion = 29
supportVersion = '28.0.0'
butterknifeVersion = '8.8.1'
}
subprojects {
repositories {
google()
jcenter()
maven { url "https://raw.github.com/laenger/maven-releases/master/releases" }
maven { url "https://raw.github.com/laenger/maven-releases/master/snapshots" }
}
apply from: "${rootDir}/config/common.gradle"
plugins.withId('com.android.library') {
afterEvaluate {
project.apply from: "${rootDir}/config/publish-android.gradle"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
def getEnvOrProperty(String name) {
return System.getenv(name) ?: project.hasProperty(name) ? project[name] : '';
}