-
Notifications
You must be signed in to change notification settings - Fork 58
/
build.gradle
44 lines (40 loc) · 1.38 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
buildscript {
ext.kotlin_version = '1.3.61'
ext.aws_version = AWS_CORE_SDK_VERSION
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.amazonaws:aws-android-sdk-appsync-gradle-plugin:3.1.3"
}
}
allprojects {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
google()
mavenCentral()
}
}
subprojects { project ->
afterEvaluate {
if (System.getenv("ORG_GRADLE_PROJECT_signingKeyId") != null) {
System.out.println("Getting signing info from protected source.")
project.ext.'signing.keyId' = System.getenv("ORG_GRADLE_PROJECT_signingKeyId")
project.ext.'signing.password' = System.getenv('ORG_GRADLE_PROJECT_signingPassword')
project.ext.'signing.inMemoryKey' = System.getenv('ORG_GRADLE_PROJECT_signingInMemoryKey')
project.ext.SONATYPE_NEXUS_USERNAME = System.getenv('ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME')
project.ext.SONATYPE_NEXUS_PASSWORD = System.getenv('ORG_GRADLE_PROJECT_SONATYPE_NEXUS_PASSWORD')
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}