File tree Expand file tree Collapse file tree 3 files changed +51
-10
lines changed
nestedscrollcoordinatorlayout Expand file tree Collapse file tree 3 files changed +51
-10
lines changed Original file line number Diff line number Diff line change
1
+ language : android
2
+
3
+ branches :
4
+ only :
5
+ - master
6
+ - /^v\d+\.\d+\.\d+$/
7
+
8
+ sudo : false
9
+
10
+ jdk :
11
+ - oraclejdk8
12
+
13
+ android :
14
+ components :
15
+ - tools
16
+ - platform-tools
17
+ - build-tools-26.0.1
18
+ - android-26
19
+ - doc-26
20
+
21
+ cache :
22
+ directories :
23
+ - $HOME/.gradle
24
+ - $HOME/.m2/repository
25
+
26
+ deploy :
27
+ provider : script
28
+ script : ./gradlew bintrayUpload
29
+ skip_cleanup : true
30
+ on :
31
+ branch : master
32
+ tags : true
Original file line number Diff line number Diff line change 3
3
buildscript {
4
4
repositories {
5
5
jcenter()
6
+ google()
6
7
}
8
+
7
9
dependencies {
8
10
classpath ' com.android.tools.build:gradle:2.3.3'
9
11
// https://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en
@@ -16,15 +18,16 @@ buildscript {
16
18
allprojects {
17
19
repositories {
18
20
jcenter()
21
+ google()
19
22
}
20
23
}
21
24
22
25
ext {
23
- compileSdkVersion = 25
24
- buildToolsVersion = " 25 .0.2 "
25
- supportLibVersion = ' 25.2.0 '
26
+ compileSdkVersion = 26
27
+ buildToolsVersion = " 26 .0.1 "
28
+ supportLibVersion = ' 26.0.2 '
26
29
minSdkVersion = 14
27
- targetSdkVersion = 25
30
+ targetSdkVersion = 26
28
31
}
29
32
30
33
task clean (type : Delete ) {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apply plugin: 'com.github.dcendents.android-maven'
3
3
apply plugin : ' com.jfrog.bintray'
4
4
5
5
// Required by bintray
6
- version = ' 1.0.0 '
6
+ version = ' 1.0.1 '
7
7
group = ' com.otaliastudios'
8
8
9
9
android {
@@ -70,13 +70,19 @@ install {
70
70
}
71
71
}
72
72
73
- Properties props = new Properties ()
74
- props. load(project. rootProject. file(' local.properties' ). newDataInputStream())
73
+ def bintrayUser = System . getenv(" BINTRAY_USER" )
74
+ def bintrayKey = System . getenv(" BINTRAY_KEY" )
75
+ if (bintrayKey == null ) {
76
+ Properties props = new Properties ()
77
+ props. load(project. rootProject. file(' local.properties' ). newDataInputStream())
78
+ bintrayUser = props. getProperty(' bintray.user' )
79
+ bintrayKey = props. get(' bintray.key' )
80
+ }
75
81
76
82
bintray {
77
83
// https://github.com/bintray/gradle-bintray-plugin
78
- user = props . getProperty( ' bintray.user ' )
79
- key = props . get( ' bintray.key ' )
84
+ user = bintrayUser
85
+ key = bintrayKey
80
86
configurations = [' archives' ]
81
87
pkg {
82
88
repo = ' android'
@@ -125,4 +131,4 @@ artifacts {
125
131
}
126
132
127
133
// export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home
128
- // ./gradlew bintrayUpload
134
+ // ./gradlew bintrayUpload
You can’t perform that action at this time.
0 commit comments