|
1 | 1 | apply plugin: 'com.android.library' |
2 | | -apply plugin: 'com.github.dcendents.android-maven' |
3 | | -apply plugin: 'com.jfrog.bintray' |
| 2 | +//apply plugin: 'com.github.dcendents.android-maven' |
| 3 | +//apply plugin: 'com.jfrog.bintray' |
4 | 4 |
|
5 | 5 | android { |
6 | 6 | compileSdkVersion 26 |
@@ -65,78 +65,78 @@ ext { |
65 | 65 | bintrayName = artifact |
66 | 66 | } |
67 | 67 |
|
68 | | -task installMavenLocal(type: Upload) { |
69 | | - repositories.mavenInstaller { |
70 | | - configuration = configurations['archives'] |
71 | | - pom.project { |
72 | | - packaging 'aar' |
73 | | - groupId = publishedGroupId |
74 | | - artifactId = artifact |
75 | | - version = libraryVersion + '-SNAPSHOT' |
76 | | - } |
77 | | - } |
78 | | -} |
| 68 | +//task installMavenLocal(type: Upload) { |
| 69 | +// repositories.mavenInstaller { |
| 70 | +// configuration = configurations['archives'] |
| 71 | +// pom.project { |
| 72 | +// packaging 'aar' |
| 73 | +// groupId = publishedGroupId |
| 74 | +// artifactId = artifact |
| 75 | +// version = libraryVersion + '-SNAPSHOT' |
| 76 | +// } |
| 77 | +// } |
| 78 | +//} |
79 | 79 |
|
80 | 80 | // Workaround bintray bug ignoring these from pom and bintray settings |
81 | 81 | version = libraryVersion |
82 | 82 | group = publishedGroupId |
83 | 83 |
|
84 | | -bintray { |
85 | | - Properties properties = new Properties() |
86 | | - properties.load(project.rootProject.file('local.properties').newDataInputStream()) |
87 | | - user = properties.getProperty('bintray.user') |
88 | | - key = properties.getProperty('bintray.apikey') |
89 | | - |
90 | | - configurations = ['archives'] |
91 | | - dryRun = false |
92 | | - publish = true |
93 | | - pkg { |
94 | | - repo = bintrayRepo |
95 | | - name = libraryName |
96 | | - desc = libraryDescription |
97 | | - websiteUrl = siteUrl |
98 | | - issueTrackerUrl = issueTrackerUrl // doesn't actually work? |
99 | | - vcsUrl = gitUrl |
100 | | - //githubRepo = gitUrl // some more bintray weirdness here, breaks upload |
101 | | - //githubReleaseNotesFile = 'README.md' |
102 | | - licenses = allLicenses |
103 | | - publicDownloadNumbers = true |
104 | | - version { |
105 | | - name = libraryVersion |
106 | | - released = new Date() |
107 | | - } |
108 | | - } |
109 | | -} |
110 | | - |
111 | | -install { |
112 | | - repositories.mavenInstaller { |
113 | | - pom.project { |
114 | | - packaging 'aar' |
115 | | - groupId = publishedGroupId |
116 | | - artifactId = artifact |
117 | | - name libraryName |
118 | | - version = libraryVersion |
119 | | - url siteUrl |
120 | | - licenses { |
121 | | - license { |
122 | | - name licenseName |
123 | | - url licenseUrl |
124 | | - } |
125 | | - } |
126 | | - developers { |
127 | | - developer { |
128 | | - id developerId |
129 | | - name developerName |
130 | | - email developerEmail |
131 | | - } |
132 | | - } |
133 | | - scm { |
134 | | - connection gitUrl |
135 | | - developerConnection gitUrl |
136 | | - url gitUrl |
137 | | - } |
138 | | - } |
139 | | - } |
140 | | -} |
141 | | - |
142 | | -bintrayUpload.dependsOn install |
| 84 | +//bintray { |
| 85 | +// Properties properties = new Properties() |
| 86 | +// properties.load(project.rootProject.file('local.properties').newDataInputStream()) |
| 87 | +// user = properties.getProperty('bintray.user') |
| 88 | +// key = properties.getProperty('bintray.apikey') |
| 89 | +// |
| 90 | +// configurations = ['archives'] |
| 91 | +// dryRun = false |
| 92 | +// publish = true |
| 93 | +// pkg { |
| 94 | +// repo = bintrayRepo |
| 95 | +// name = libraryName |
| 96 | +// desc = libraryDescription |
| 97 | +// websiteUrl = siteUrl |
| 98 | +// issueTrackerUrl = issueTrackerUrl // doesn't actually work? |
| 99 | +// vcsUrl = gitUrl |
| 100 | +// //githubRepo = gitUrl // some more bintray weirdness here, breaks upload |
| 101 | +// //githubReleaseNotesFile = 'README.md' |
| 102 | +// licenses = allLicenses |
| 103 | +// publicDownloadNumbers = true |
| 104 | +// version { |
| 105 | +// name = libraryVersion |
| 106 | +// released = new Date() |
| 107 | +// } |
| 108 | +// } |
| 109 | +//} |
| 110 | + |
| 111 | +//install { |
| 112 | +// repositories.mavenInstaller { |
| 113 | +// pom.project { |
| 114 | +// packaging 'aar' |
| 115 | +// groupId = publishedGroupId |
| 116 | +// artifactId = artifact |
| 117 | +// name libraryName |
| 118 | +// version = libraryVersion |
| 119 | +// url siteUrl |
| 120 | +// licenses { |
| 121 | +// license { |
| 122 | +// name licenseName |
| 123 | +// url licenseUrl |
| 124 | +// } |
| 125 | +// } |
| 126 | +// developers { |
| 127 | +// developer { |
| 128 | +// id developerId |
| 129 | +// name developerName |
| 130 | +// email developerEmail |
| 131 | +// } |
| 132 | +// } |
| 133 | +// scm { |
| 134 | +// connection gitUrl |
| 135 | +// developerConnection gitUrl |
| 136 | +// url gitUrl |
| 137 | +// } |
| 138 | +// } |
| 139 | +// } |
| 140 | +//} |
| 141 | + |
| 142 | +//bintrayUpload.dependsOn install |
0 commit comments