1
1
apply plugin : ' groovy'
2
- apply plugin : ' nexus '
2
+ apply plugin : ' com.jfrog.bintray '
3
3
4
4
5
5
targetCompatibility = JavaVersion . VERSION_1_7
@@ -8,36 +8,73 @@ sourceCompatibility = JavaVersion.VERSION_1_7
8
8
dependencies {
9
9
compile gradleApi()
10
10
compile localGroovy()
11
- compile ' com.android.tools.build:gradle:1.3 .0'
11
+ compile ' com.android.tools.build:gradle:1.5 .0'
12
12
compile ' org.aspectj:aspectjtools:1.8.6'
13
13
compile ' org.aspectj:aspectjrt:1.8.6'
14
14
}
15
15
16
- modifyPom {
17
- project {
18
- name " Chronometro Plugin"
19
- description POM_DESCRIPTION
20
- url POM_URL
16
+ Properties properties = new Properties ()
17
+ properties. load(project. rootProject. file(' local.properties' ). newDataInputStream())
21
18
22
- scm {
23
- url POM_SCM_URL
24
- connection POM_SCM_CONNECTION
25
- developerConnection POM_SCM_DEV_CONNECTION
26
- }
19
+ bintray {
20
+ user = properties. getProperty(" bintray.user" )
21
+ key = properties. getProperty(" bintray.apikey" )
22
+
23
+ configurations = [' archives' ]
24
+ pkg {
25
+ repo = ' maven'
26
+ name = ' Chronometro'
27
27
28
- licenses {
29
- license {
30
- name POM_LICENCE_NAME
31
- url POM_LICENCE_URL
32
- distribution POM_LICENCE_DIST
28
+ userOrg = user
29
+ desc = POM_DESCRIPTION
30
+ websiteUrl = POM_SCM_URL
31
+ vcsUrl = POM_SCM_CONNECTION
32
+ licenses = [" Apache-2.0" ]
33
+ publish = true
34
+ publicDownloadNumbers = true
35
+ version {
36
+ desc = POM_DESCRIPTION
37
+ gpg {
38
+ sign = true // Determines whether to GPG sign the files. The default is false
39
+ passphrase = properties. getProperty(" bintray.gpg.password" )
40
+ // Optional. The passphrase for GPG signing'
33
41
}
34
42
}
43
+ }
44
+ }
45
+
46
+ install {
47
+ repositories. mavenInstaller {
48
+ // This generates POM.xml with proper parameters
49
+ pom. project {
50
+ packaging ' aar'
51
+ groupId GROUP
52
+ artifactId ' chronometro-plugin'
35
53
36
- developers {
37
- developer {
38
- id POM_DEVELOPER_ID
39
- name POM_DEVELOPER_NAME
54
+ // Add your description here
55
+ name ' Chronometro'
56
+ description POM_DESCRIPTION
57
+ url POM_URL
58
+
59
+ // Set your license
60
+ licenses {
61
+ license {
62
+ name POM_LICENCE_NAME
63
+ url POM_LICENCE_URL
64
+ }
65
+ }
66
+ developers {
67
+ developer {
68
+ id POM_DEVELOPER_ID
69
+ name POM_DEVELOPER_NAME
70
+ email POM_DEVELOPER_EMAIL
71
+ }
72
+ }
73
+ scm {
74
+ connection POM_SCM_CONNECTION
75
+ developerConnection POM_SCM_DEV_CONNECTION
76
+ url POM_SCM_URL
40
77
}
41
78
}
42
79
}
43
- }
80
+ }
0 commit comments