Skip to content

Commit 189bc48

Browse files
committed
Update build.gradle
1 parent 414a969 commit 189bc48

File tree

1 file changed

+72
-7
lines changed

1 file changed

+72
-7
lines changed

MaterialDesignDemo/build.gradle

Lines changed: 72 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
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'
24

35
android {
46
compileSdkVersion 19
5-
buildToolsVersion '20.0.0'
7+
buildToolsVersion '21.1.2'
68

79
sourceSets {
810
main {
@@ -21,16 +23,79 @@ android {
2123
}
2224

2325
defaultConfig {
24-
applicationId 'com.gc.materialdesign'
2526
minSdkVersion 8
2627
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
2952
}
3053
}
3154

3255
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'
3593
}
3694

95+
artifacts {
96+
archives sourcesJar
97+
}
98+
99+
task findConventions << {
100+
println project.getConvention()
101+
}

0 commit comments

Comments
 (0)