1
+ apply plugin : ' com.github.dcendents.android-maven'
2
+ apply plugin : ' com.jfrog.bintray'
3
+
4
+ ext {
5
+ bintrayRepo = ' maven'
6
+ bintrayName = ' MVI-Valueadd'
7
+
8
+ publishedGroupId = ' pl.valueadd'
9
+ libraryName = ' MVI-Valueadd'
10
+ artifact = ' mvi'
11
+
12
+ libraryDescription = ' This library contains architecture for mvi.'
13
+
14
+ siteUrl = ' https://github.com/valueadd-poland/mvi-valueadd'
15
+ gitUrl = ' https://github.com/valueadd-poland/mvi-valueadd.git'
16
+
17
+ libraryVersion = ' 0.1'
18
+
19
+ developerId = ' valueadd-poland'
20
+ developerName = ' Valueadd'
21
+ developerEmail
= ' [email protected] '
22
+
23
+ licenseName = ' The Apache Software License, Version 2.0'
24
+ licenseUrl = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
25
+ allLicenses = [" Apache-2.0" ]
26
+ }
27
+
28
+ group = publishedGroupId
29
+ version = libraryVersion
30
+
31
+ install {
32
+ repositories. mavenInstaller {
33
+ pom. project {
34
+ packaging ' aar'
35
+ groupId publishedGroupId
36
+ artifactId artifact
37
+
38
+ name libraryName
39
+ description libraryDescription
40
+ url siteUrl
41
+
42
+ licenses {
43
+ license {
44
+ name licenseName
45
+ url licenseUrl
46
+ }
47
+ }
48
+ developers {
49
+ developer {
50
+ id developerId
51
+ name developerName
52
+ email developerEmail
53
+ }
54
+ }
55
+ scm {
56
+ connection gitUrl
57
+ developerConnection gitUrl
58
+ url siteUrl
59
+ }
60
+ }
61
+ }
62
+ }
63
+
64
+
65
+
66
+ Properties properties = new Properties ()
67
+ properties. load(project. rootProject. file(' local.properties' ). newDataInputStream())
68
+
69
+ bintray {
70
+ user = properties. getProperty(" bintray.user" )
71
+ key = properties. getProperty(" bintray.apikey" )
72
+
73
+ configurations = [' archives' ]
74
+ pkg {
75
+ repo = bintrayRepo
76
+ name = bintrayName
77
+ desc = libraryDescription
78
+ websiteUrl = siteUrl
79
+ vcsUrl = gitUrl
80
+ licenses = allLicenses
81
+ dryRun = false
82
+ publish = true
83
+ override = false
84
+ publicDownloadNumbers = true
85
+ version {
86
+ desc = libraryDescription
87
+ }
88
+ }
89
+ }
0 commit comments