1
- apply plugin : ' com.android.application'
1
+ apply plugin : ' com.android.library'
2
+ apply plugin : ' com.github.dcendents.android-maven'
3
+ apply plugin : ' com.jfrog.bintray'
2
4
3
5
android {
4
6
compileSdkVersion 19
5
- buildToolsVersion ' 20.0.0 '
7
+ buildToolsVersion ' 21.1.2 '
6
8
7
9
sourceSets {
8
10
main {
@@ -21,16 +23,79 @@ android {
21
23
}
22
24
23
25
defaultConfig {
24
- applicationId ' com.gc.materialdesign'
25
26
minSdkVersion 8
26
27
targetSdkVersion 21
27
- versionCode 1
28
- versionName ' 1.0'
28
+ versionCode 6
29
+ versionName ' 1.4'
30
+ }
31
+ }
32
+
33
+ ext. siteUrl = ' https://github.com/navasmdc/MaterialDesignLibrary'
34
+ ext. issueUrl = ' https://github.com/navasmdc/MaterialDesignLibrary/issues'
35
+ ext. gitUrl = ' https://github.com/navasmdc/MaterialDesignLibrary.git'
36
+
37
+ bintray {
38
+ user = hasProperty(' BINTRAY_USER' ) ? BINTRAY_USER : " navasmdc"
39
+ key = hasProperty(' BINTRAY_KEY' ) ? BINTRAY_PASSWORD : " "
40
+
41
+ configurations = [" archives" ]
42
+ pkg {
43
+ repo = ' maven'
44
+ name = ' MaterialDesignLibrary'
45
+ desc = ' This is a library with components of Android L to you use in android 2.2'
46
+ websiteUrl = siteUrl
47
+ issueTrackerUrl = issueUrl
48
+ vcsUrl = gitUrl
49
+ licenses = [' Apache-2.0' ]
50
+ labels = []
51
+ publicDownloadNumbers = true
29
52
}
30
53
}
31
54
32
55
dependencies {
33
- compile project(" :MaterialDesign" )
34
- compile ' com.android.support:support-v4:21.+'
56
+ compile ' com.nineoldandroids:library:2.4.0'
57
+ compile ' com.android.support:support-v4:21.0.3'
58
+ }
59
+
60
+ install {
61
+ repositories. mavenInstaller {
62
+ pom {
63
+ project {
64
+ packaging ' aar'
65
+ name ' MaterialDesignLibrary'
66
+ url siteUrl
67
+ licenses {
68
+ license {
69
+ name ' The Apache Software License, Version 2.0'
70
+ url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
71
+ }
72
+ }
73
+ developers {
74
+ developer {
75
+ id ' navasmdc'
76
+ name ' Iván Navas'
77
+
78
+ }
79
+ }
80
+ scm {
81
+ connection gitUrl
82
+ developerConnection gitUrl
83
+ url siteUrl
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+
90
+ task sourcesJar (type : Jar ) {
91
+ from android. sourceSets. main. java. srcDirs
92
+ classifier = ' sources'
35
93
}
36
94
95
+ artifacts {
96
+ archives sourcesJar
97
+ }
98
+
99
+ task findConventions << {
100
+ println project. getConvention()
101
+ }
0 commit comments