aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Dochez <jedo@google.com>2015-06-05 10:14:36 -0700
committerJerome Dochez <jedo@google.com>2015-06-05 10:43:23 -0700
commit2bcff77f32e64838548fa4a572f9ee98fd7528e3 (patch)
treea64c88d802b57935aa9d1f1731927af38e10df0f
parent194585c44c515ea04900f8f3f4c8c6c762388683 (diff)
downloadbuildSrc-2bcff77f32e64838548fa4a572f9ee98fd7528e3.tar.gz
changed bintray plugin importation.
iworked around gradle limitation by using the plugin class rather than its Id in bintray.gradle which allow removing declaring plugin depedency in each importing project. Change-Id: I58a189e840815dd53907c6b8b835a21e8c294390
-rw-r--r--base/bintray.gradle7
1 files changed, 6 insertions, 1 deletions
diff --git a/base/bintray.gradle b/base/bintray.gradle
index a0a7e04..483e3d1 100644
--- a/base/bintray.gradle
+++ b/base/bintray.gradle
@@ -7,7 +7,12 @@ buildscript {
}
}
-apply plugin: 'com.jfrog.bintray'
+// apply the plugin with its class name rather than its Id to work around gradle limitation of
+// not being able to find the plugin by Id despite the dependencies being added right above. Gradle
+// is currently not capable of loading plugins by Id if the dependency is anywhere else than
+// in the main project build.gradle. This file is "imported" into the project's build.gradle
+// through a "apply from:".
+apply plugin: com.jfrog.bintray.gradle.BintrayPlugin
apply plugin: 'maven-publish'
publishing {