File tree Expand file tree Collapse file tree 1 file changed +30
-7
lines changed Expand file tree Collapse file tree 1 file changed +30
-7
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
2
apply plugin : ' maven-publish'
3
3
4
+ dependencies {
5
+ compile ' com.android.support:appcompat-v7:19+'
6
+ compile fileTree(dir : ' libs' , include : [' *.jar' , ' *.aar' ])
7
+ }
8
+
4
9
publishing {
5
10
publications {
6
11
HeaderListView (MavenPublication ) {
7
- artifact ' ./build/outputs/aar/' + project. name + type
12
+ artifact ' ./build/outputs/aar/' + project. name + ' -' + project. version + ' .aar'
13
+
14
+ pom. withXml {
15
+ Node deps = asNode(). appendNode(' dependencies' )
16
+ project. configurations. compile. dependencies. each() { obj ->
17
+ if (obj. group?. trim()) {
18
+ Node dep = new Node (deps, ' dependency' )
19
+ dep. appendNode(' groupId' , obj. group)
20
+ dep. appendNode(' artifactId' , obj. name)
21
+ dep. appendNode(' version' , obj. version)
22
+ dep. appendNode(' scope' , ' compile' )
23
+ }
24
+ }
25
+ }
8
26
}
9
27
}
10
28
}
11
29
30
+ group ' com.applidium'
31
+ version ' 1.0'
32
+ ext. androidVersionCode = 1
33
+
12
34
android {
13
35
compileSdkVersion 19
14
36
buildToolsVersion " 19.1.0"
15
37
16
38
defaultConfig {
17
39
minSdkVersion 7
18
40
targetSdkVersion 19
19
- versionCode 1
20
- versionName " 1.0 "
41
+ versionCode androidVersionCode
42
+ versionName version
21
43
}
22
- }
23
44
24
- dependencies {
25
- compile ' com.android.support:appcompat-v7:19+'
26
- compile fileTree(dir : ' libs' , include : [' *.jar' , ' *.aar' ])
45
+ buildTypes {
46
+ release {
47
+
48
+ }
49
+ }
27
50
}
You can’t perform that action at this time.
0 commit comments