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

Unified Diff: build.gradle

Issue 29784577: Issue 6205 - Upload artifacs to maven repository (Closed)
Patch Set: Several adjustments Created July 9, 2018, 3:53 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build.gradle
===================================================================
--- a/build.gradle
+++ b/build.gradle
@@ -1,49 +1,36 @@
-import java.util.regex.Matcher
-import java.util.regex.Pattern
-
-// ABI flavor of "adblock-android" module
-def getAbiFlavor() {
- Gradle gradle = getGradle()
- String taskReqStr = gradle.getStartParameter().getTaskRequests().toString()
-
- Pattern pattern;
-
- if (taskReqStr.contains("assemble")) {
- pattern = Pattern.compile("assemble(Abi_\\w{2,3})(Release|Debug)*(\\w*)")
- } else {
- pattern = Pattern.compile("generate(Abi_\\w{2,3})(Release|Debug)*(\\w*)")
+buildscript {
+ repositories {
+ google()
+ jcenter()
}
- Matcher matcher = pattern.matcher(taskReqStr)
-
- if (matcher.find()) {
- return matcher.group(1).toLowerCase()
- } else {
- return "abi_all"
+ dependencies {
+ classpath 'com.android.tools.build:gradle:3.1.3'
+ classpath 'com.novoda:bintray-release:0.8.1'
}
}
-buildscript {
- repositories {
- mavenLocal()
- mavenCentral()
- jcenter()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:2.3.0'
- }
+ext {
+ bintrayUserOrg = 'adblockplus'
+ bintrayGroupId = 'org.adblockplus'
+ bintrayLicences = ['GPL-3.0']
+ bintrayWebsite = 'https://github.com/adblockplus/libadblockplus-android'
+ bintrayIssueTracker = 'http://issues.adblockplus.org/'
+ bintrayRepository = 'https://github.com/adblockplus/libadblockplus-android.git'
}
def gradleBuildDir = System.getenv('GRADLE_BUILD_DIR')
if (gradleBuildDir != null) {
println "[Configuration] Building project in ${gradleBuildDir}"
allprojects {
buildDir = "${gradleBuildDir}/${project.name}"
}
}
subprojects {
+ repositories {
+ google()
+ jcenter()
+ }
task listAllDependencies(type: DependencyReportTask) {}
}
-
-println "[Configuration] Using adblock-android ABI flavor: " + getAbiFlavor()

Powered by Google App Engine
This is Rietveld