-
Notifications
You must be signed in to change notification settings - Fork 33
/
build.gradle
108 lines (97 loc) · 3.22 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
def VERSION = '0.1.5'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.5'
}
}
apply plugin: 'com.android.library'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
android {
compileSdkVersion 19
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.emmano.blurstickyheaderlistviewlib"
minSdkVersion 11
targetSdkVersion 19
versionCode 1
versionName "1.0"
renderscriptTargetApi 19
renderscriptSupportMode true
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
task androidJavadocs(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}
task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
from androidJavadocs.destinationDir
}
task androidSourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
}
publishing {
publications {
dist(MavenPublication) {
groupId 'me.emmano'
version VERSION
artifactId 'blurstickyheaderlistview'
artifact "build/outputs/aar/blurstickyheaderlistviewlib.aar"
artifact androidJavadocsJar {
classifier 'source'
}
artifact androidSourcesJar {
classifier 'javadoc'
}
pom.withXml {
def root = asNode()
def dependencies = root.appendNode('dependencies')
configurations.compile.allDependencies.each {
if (it['group'] != null) {
def dependency = dependencies.appendNode('dependency')
dependency?.appendNode('groupId', it['group'])
dependency?.appendNode('artifactId', it['name'])
dependency?.appendNode('version', it['version'])
}
}
}
}
}
}
bintray {
user = bintrayUser
key = bintrayApiKey
publications = ['dist']
dryRun = false
publish = false
pkg {
repo = 'emmano'
name = 'me.emmano.blurheaderstickylistview'
desc = 'ListView that allows to easily display an image form the internet on its header. It blurs the image and applies a parallax effect to the header. It also offers sticky title functionality.'
websiteUrl = 'https://github.com/emmano/BlurStickyHeaderListView/'
issueTrackerUrl = 'https://github.com/emmano/BlurStickyHeaderListView/issues'
vcsUrl = 'https://github.com/emmano/BlurStickyHeaderListView.git'
licenses = ['MIT']
labels = ['Android', 'ListView']
publicDownloadNumbers = true
version {
name = VERSION //Bintray logical VERSION name
desc = 'Added Google+ effect to ActionBar'
vcsTag = VERSION
}
}
}
dependencies {
compile 'com.squareup.picasso:picasso:2.3.+'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v4:20.0.0'
}