Permalink
Browse files

Depend on plugins only in projects that need them.

  • Loading branch information...
1 parent cbbbd81 commit edec879ca63fc9b60ce14f253f8074233827b9dd @UweTrottmann committed Oct 5, 2016
@@ -3,8 +3,9 @@ buildscript {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
- //noinspection GradleDynamicVersion
- classpath 'io.fabric.tools:gradle:1.+'
+ classpath dep.androidPlugin
+ classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
+ classpath 'io.fabric.tools:gradle:1.22.0'
}
}
View
@@ -1,3 +1,9 @@
+buildscript {
+ dependencies {
+ classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3'
+ }
+}
+
apply plugin: "java"
apply plugin: "maven"
apply plugin: "signing"
View
@@ -1,22 +1,19 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
-apply plugin: 'com.github.ben-manes.versions'
+plugins {
+ id "com.github.ben-manes.versions" version "0.13.0"
+}
-buildscript {
- repositories {
- jcenter()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:2.2.0'
- classpath 'com.github.ben-manes:gradle-versions-plugin:0.13.0'
- classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
- classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3'
+subprojects {
+ buildscript {
+ repositories {
+ mavenCentral()
+ jcenter()
+ }
}
-}
-allprojects {
repositories {
- jcenter()
mavenCentral()
+ jcenter()
}
}
@@ -33,4 +30,8 @@ ext {
androidVersionName = '33-beta3'
supportVersion = '24.2.1'
+
+ dep = [
+ androidPlugin: 'com.android.tools.build:gradle:2.2.0'
+ ]
}
@@ -1,3 +1,9 @@
+buildscript {
+ dependencies {
+ classpath dep.androidPlugin
+ }
+}
+
apply plugin: 'com.android.library'
dependencies {
@@ -1,3 +1,9 @@
+buildscript {
+ dependencies {
+ classpath dep.androidPlugin
+ }
+}
+
apply plugin: 'com.android.library'
android {

0 comments on commit edec879

Please sign in to comment.