Skip to content

Commit

Permalink
Hygiene: remove unused Gradle bits
Browse files Browse the repository at this point in the history
Change-Id: I7f8e455ac8216f29750ec6bcd8554f67d6fddd62
  • Loading branch information
Michael Holloway committed Aug 1, 2017
1 parent 6a6c0d2 commit 9fdebc1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 33 deletions.
8 changes: 0 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,6 @@ apply from: '../gradle/src/test.gradle'
apply from: '../gradle/src/checkstyle.gradle'
apply from: '../gradle/src/screenshot.gradle'

def compileSubprojectOrModule = { String projectName,
String moduleName,
String excludeGroup = null,
String excludeModule = null ->
def dependency = project.findProject(projectName) ?: moduleName
project.dependencies.add('compile', dependency, {exclude group: excludeGroup, module: excludeModule })
}

dependencies {

// To keep the Maven Central dependencies up-to-date
Expand Down
5 changes: 1 addition & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.facebook.testing.screenshot:plugin:0.4.2'
classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.7.1'
}
}

allprojects {
repositories {
mavenLocal()
jcenter()
maven { url 'https://oss.sonatype.org/content/groups/staging' }
maven { url 'https://maven.google.com' }
}
}
}
21 changes: 0 additions & 21 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
import java.util.regex.Matcher

def fileExists = {String filename ->
new File(filename).exists()
}

def hierarchyToFilename = { String hierarchy ->
return hierarchy && hierarchy.length() > 0 ?
hierarchy.substring(1).replaceAll(':', Matcher.quoteReplacement(File.separator)) :
hierarchy
}

def includeExists = { String projectPath, String name ->
if (fileExists(hierarchyToFilename(projectPath))) {
include projectPath

// Replace a generic name like "lib".
project(projectPath).name = name
}
}

include ':app'

0 comments on commit 9fdebc1

Please sign in to comment.
  NODES
COMMUNITY 1
Note 1
Project 15
USERS 1