Skip to content

Commit 668637f

Browse files
author
Josh Deffibaugh
committed
Read bintray user and key from env variables
1 parent 8cd40fe commit 668637f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.idea/dictionaries/jdeffibaugh.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717
// Top-level build file where you can add configuration options common to all sub-projects/modules.
1818

1919
buildscript {
20-
if (file('values.gradle').exists()) {
21-
apply from: 'values.gradle'
20+
def bintrayUser = System.getenv('BINTRAY_USER')
21+
def bintrayApiKey = System.getenv('BINTRAY_API_KEY')
22+
if (bintrayUser != null && bintrayApiKey != null) {
23+
rootProject.ext.bintray_user = bintrayUser
24+
rootProject.ext.bintray_api_key = bintrayApiKey
2225
} else {
2326
rootProject.ext.bintray_user = ''
2427
rootProject.ext.bintray_api_key = ''
@@ -58,7 +61,7 @@ ext {
5861
dexmaker_ver = "1.2"
5962
espresso_ver = "2.2.2"
6063
gson_ver = "2.6.2"
61-
version_name = "0.1.0"
64+
version_name = "0.1.1-SNAPSHOT"
6265
group_id = "com.optimizely.ab"
6366
}
6467

0 commit comments

Comments
 (0)