This repository has been archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
build.gradle
52 lines (45 loc) · 1.88 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
apply plugin: "com.github.ben-manes.versions"
buildscript {
repositories {
jcenter()
google()
maven { url "https://jitpack.io" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
classpath "com.android.tools.build:gradle:$GRADLE_PLUGIN_VERSION"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$BINTRAY_PLUGIN_VERSION"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
classpath "com.github.dcendents:android-maven-gradle-plugin:$DCENDENTS_MAVEN_PLUGIN_VERSION"
classpath "de.mannodermaus.gradle.plugins:android-junit5:$ANDROID_JUNIT5_PLUGIN_VERSION"
classpath "org.junit.platform:junit-platform-gradle-plugin:$JAVA_JUNIT5_PLUGIN_VERSION"
classpath "digital.wup:android-maven-publish:$ANDROID_MAVEN_PLUGIN_VERSION"
classpath "com.github.ben-manes:gradle-versions-plugin:$VERSIONS_PLUGIN_VERSION"
}
}
// Populate deployment credentials in an environment-aware fashion.
//
// * Local development:
// Stored in local.properties file on the machine
// * CI Server:
// Stored in environment variables before launch
Properties properties = new Properties()
def credentialsFile = new File(project.rootDir, "local.properties")
if (credentialsFile.exists()) {
credentialsFile.withReader { properties.load(it) }
}
def bintrayUser = properties.getProperty("BINTRAY_USER", System.getenv("bintrayUser"))
def bintrayKey = properties.getProperty("BINTRAY_KEY", System.getenv("bintrayKey"))
def sonatypeUser = properties.getProperty("SONATYPE_USER", System.getenv("sonatypeUser"))
def sonatypePass = properties.getProperty("SONATYPE_PASS", System.getenv("sonatypePass"))
allprojects {
repositories {
google()
jcenter()
}
// Store deployment credentials
ext.bintrayUser = bintrayUser
ext.bintrayKey = bintrayKey
ext.sonatypeUser = sonatypeUser
ext.sonatypePass = sonatypePass
}