This repository was archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathbuild.gradle
More file actions
executable file
·42 lines (37 loc) · 1.38 KB
/
build.gradle
File metadata and controls
executable file
·42 lines (37 loc) · 1.38 KB
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
buildscript {
repositories {
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "net.ltgt.gradle:gradle-apt-plugin:$APT_PLUGIN_VERSION"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$BINTRAY_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) }
}
// @formatter:off
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"))
// @formatter:on
allprojects {
repositories {
jcenter()
}
// Store deployment credentials
ext.bintrayUser = bintrayUser
ext.bintrayKey = bintrayKey
ext.sonatypeUser = sonatypeUser
ext.sonatypePass = sonatypePass
}