File tree 2 files changed +15
-39
lines changed
2 files changed +15
-39
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ buildscript {
10
10
}
11
11
12
12
plugins {
13
- id " com.jfrog.bintray" version " 1.7.3 "
13
+ id " com.jfrog.bintray" version " 1.8.4 "
14
14
}
15
15
16
16
plugins {
17
- id " com.github.dcendents.android-maven" version " 2.0 "
17
+ id " com.github.dcendents.android-maven" version " 2.1 "
18
18
}
19
19
20
20
bintray {
Original file line number Diff line number Diff line change @@ -54,49 +54,16 @@ android {
54
54
}
55
55
}
56
56
57
- install {
58
- repositories. mavenInstaller {
59
- pom. project {
60
- name POM_NAME
61
- description POM_DESCRIPTION
62
- url POM_URL
63
- inceptionYear ' 2016'
64
-
65
- packaging ' aar'
66
- group GROUP
67
- artifactId POM_ARTIFACT_ID
68
- version VERSION_NAME
69
-
70
- licenses {
71
- license {
72
- name ' The Apache Software License, Version 2.0'
73
- url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
74
- distribution ' repo'
75
- }
76
- }
77
- scm {
78
- connection POM_SCM_URL
79
- url POM_SCM_CONNECTION
80
-
81
- }
82
- developers {
83
- developer {
84
- name ' CodePath, Inc.'
85
- }
86
- }
87
- }
88
- }
89
- }
90
-
91
57
bintray {
92
- user = System . getenv(' BINTRAY_USER' )
93
- key = System . getenv(' BINTRAY_API_KEY' )
58
+ user = project. hasProperty(' bintrayUser' ) ? project. property(' bintrayUser' ) : System . getenv(' BINTRAY_USER' )
59
+ key = project. hasProperty(' bintrayApiKey' ) ? project. property(' bintrayApiKey' ) : System . getenv(' BINTRAY_API_KEY' )
60
+
94
61
configurations = [' archives' ] // needs apply plugin 'com.jfrog.bintray' to work
95
62
96
63
pkg {
97
64
repo = ' maven'
98
65
name = ' android-oauth-handler'
99
- // userOrg = 'codepath'
66
+ userOrg = ' codepath'
100
67
licenses = [' Apache-2.0' ]
101
68
vcsUrl = ' https://github.com/codepath/android-oauth-handler.git'
102
69
version {
@@ -109,6 +76,15 @@ bintray {
109
76
110
77
}
111
78
79
+ task sourcesJar (type : Jar ) {
80
+ from android. sourceSets. main. java. srcDirs
81
+ archiveClassifier. set(" sources" )
82
+ }
83
+
84
+ artifacts {
85
+ archives sourcesJar
86
+ }
87
+
112
88
ext {
113
89
supportVersion = ' 28.0.0'
114
90
}
You can’t perform that action at this time.
0 commit comments