Skip to content

Commit

Permalink
prepare the repository as Maps SDK vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasPaczos committed Jan 11, 2019
1 parent 803efff commit 2802f0d
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 17 deletions.
22 changes: 22 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,28 @@ subprojects {
}
}

def TESTABLE_MODULES = ["libcore", "libtelemetry", "liblocation"]
def RELEASE_MODULES = ["libcore", "libtelemetry"]

subprojects { subproject ->

if (TESTABLE_MODULES.contains(subproject.name)) {
apply from: "${rootDir}/gradle/checkstyle.gradle"
apply from: "${rootDir}/gradle/jacoco.gradle"
}

if (RELEASE_MODULES.contains(subproject.name)) {
subproject.afterEvaluate {
subproject.apply from: "javadoc.gradle"
}
subproject.apply from: "${rootDir}/gradle/mvn-push-android.gradle"
}

if (subproject.name == "libtelemetry") {
subproject.apply from: "${rootDir}/gradle/download-schema.gradle"
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
Expand Down
11 changes: 5 additions & 6 deletions libcore/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
apply plugin: 'com.android.library'

// Re-apply runtime required subproject gradle scripts and classpaths,
// so that Maps SDK doesn't rely on them being served from the top level build.gradle
apply from: "../gradle/dependencies.gradle"

version = VERSION_NAME

android {
Expand Down Expand Up @@ -35,9 +39,4 @@ dependencies {
androidTestImplementation(dependenciesList.testEspressoCore, {
exclude group: 'com.android.support', module: 'support-annotations'
})
}

apply from: 'javadoc.gradle'
apply from: "${rootDir}/gradle/mvn-push-android.gradle"
apply from: "${rootDir}/gradle/checkstyle.gradle"
apply from: "${rootDir}/gradle/jacoco.gradle"
}
5 changes: 1 addition & 4 deletions liblocation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,4 @@ dependencies {
exclude group: 'com.android.support', module: 'support-annotations'
})
androidTestImplementation dependenciesList.gmsLocation
}

apply from: "${rootDir}/gradle/checkstyle.gradle"
apply from: "${rootDir}/gradle/jacoco.gradle"
}
12 changes: 5 additions & 7 deletions libtelemetry/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
apply plugin: 'com.android.library'

// Re-apply runtime required subproject gradle scripts and classpaths,
// so that Maps SDK doesn't rely on them being served from the top level build.gradle
apply from: "../gradle/dependencies.gradle"

version = VERSION_NAME

android {
Expand Down Expand Up @@ -49,10 +53,4 @@ dependencies {
androidTestImplementation dependenciesList.testRunner
androidTestImplementation dependenciesList.testRules
androidTestImplementation dependenciesList.gmsLocation
}

apply from: 'javadoc.gradle'
apply from: "${rootDir}/gradle/mvn-push-android.gradle"
apply from: "${rootDir}/gradle/checkstyle.gradle"
apply from: "${rootDir}/gradle/download-schema.gradle"
apply from: "${rootDir}/gradle/jacoco.gradle"
}

0 comments on commit 2802f0d

Please sign in to comment.