Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: build.gradle

Issue 29784577: Issue 6205 - Upload artifacs to maven repository (Closed)
Left Patch Set: Created May 17, 2018, 1:25 p.m.
Right Patch Set: Adjustments regarding comments Created July 10, 2018, 12:39 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 import java.util.regex.Matcher 1 buildscript {
2 import java.util.regex.Pattern 2 repositories {
3 3 google()
4 // ABI flavor of "adblock-android" module 4 jcenter()
5 def getAbiFlavor() {
6 Gradle gradle = getGradle()
7 String taskReqStr = gradle.getStartParameter().getTaskRequests().toString()
8
9 Pattern pattern;
10
11 if (taskReqStr.contains("assemble")) {
12 pattern = Pattern.compile("assemble(Abi_\\w{2,3})(Release|Debug)*(\\w*)")
13 } else {
14 pattern = Pattern.compile("generate(Abi_\\w{2,3})(Release|Debug)*(\\w*)")
15 } 5 }
16 6
17 Matcher matcher = pattern.matcher(taskReqStr)
18
19 if (matcher.find()) {
20 return matcher.group(1).toLowerCase()
21 } else {
22 return "abi_all"
23 }
24 }
25
26 buildscript {
27 repositories {
28 mavenLocal()
29 jcenter()
30 }
31 dependencies { 7 dependencies {
32 classpath 'com.android.tools.build:gradle:2.3.0' 8 classpath 'com.android.tools.build:gradle:3.1.3'
33 classpath 'com.novoda:bintray-release:0.8.1' 9 classpath 'com.novoda:bintray-release:0.8.1'
34 } 10 }
35 } 11 }
36 12
37 ext { 13 ext {
38 bintrayUserOrg = 'adblockplus' 14 bintrayUserOrg = 'adblockplus'
diegocarloslima 2018/05/17 13:45:47 We still need to discuss what will be our organiza
39 bintrayGroupId = 'org.adblockplus' 15 bintrayGroupId = 'org.adblockplus'
diegocarloslima 2018/05/17 13:45:48 I think that for the group id is fine if we strip
40 bintrayLicences = ['GPL-3.0'] 16 bintrayLicences = ['GPL-3.0']
41 bintrayWebsite = 'https://github.com/adblockplus/libadblockplus-android' 17 bintrayWebsite = 'https://github.com/adblockplus/libadblockplus-android'
42 bintrayIssueTracker = 'http://issues.adblockplus.org/' 18 bintrayIssueTracker = 'http://issues.adblockplus.org/'
43 bintrayRepository = 'https://github.com/adblockplus/libadblockplus-android.g it' 19 bintrayRepository = 'https://github.com/adblockplus/libadblockplus-android.g it'
44 } 20 }
45 21
46 def gradleBuildDir = System.getenv('GRADLE_BUILD_DIR') 22 def gradleBuildDir = System.getenv('GRADLE_BUILD_DIR')
47 if (gradleBuildDir != null) { 23 if (gradleBuildDir != null) {
48 println "[Configuration] Building project in ${gradleBuildDir}" 24 println "[Configuration] Building project in ${gradleBuildDir}"
49 allprojects { 25 allprojects {
50 buildDir = "${gradleBuildDir}/${project.name}" 26 buildDir = "${gradleBuildDir}/${project.name}"
51 } 27 }
52 } 28 }
53 29
54 subprojects { 30 subprojects {
31 repositories {
32 google()
33 jcenter()
34 }
55 task listAllDependencies(type: DependencyReportTask) {} 35 task listAllDependencies(type: DependencyReportTask) {}
56 } 36 }
57
58 println "[Configuration] Using adblock-android ABI flavor: " + getAbiFlavor()
LEFTRIGHT

Powered by Google App Engine
This is Rietveld