Store/build.gradle

97 lines
2.8 KiB
Groovy
Raw Normal View History

2016-11-29 18:59:48 +00:00
apply from: 'buildsystem/dependencies.gradle'
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenLocal()
maven {
url 'https://plugins.gradle.org/m2/'
}
2017-01-04 19:17:53 +00:00
2016-11-29 18:59:48 +00:00
maven {
2017-01-04 19:17:53 +00:00
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
2016-11-29 18:59:48 +00:00
}
jcenter()
google()
2016-11-29 18:59:48 +00:00
}
rootProject.ext.versions = [
kotlin: '1.2.21'
]
2016-11-29 18:59:48 +00:00
dependencies {
2018-05-13 19:35:44 +00:00
classpath 'com.android.tools.build:gradle:3.1.2'
2016-11-29 18:59:48 +00:00
classpath 'com.google.gms:google-services:3.0.0'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.5.6'
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.11'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$rootProject.ext.versions.kotlin"
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:0.9.14'
2016-11-29 18:59:48 +00:00
}
}
allprojects {
buildscript {
}
repositories {
2017-01-17 17:37:15 +00:00
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
2016-11-29 18:59:48 +00:00
mavenCentral()
}
// Workaround to prevent Gradle from stealing focus from other apps during tests run/etc.
// https://gist.github.com/artem-zinnatullin/4c250e04636e25797165
tasks.withType(JavaForkOptions) {
jvmArgs '-Djava.awt.headless=true'
}
}
2017-01-04 19:17:53 +00:00
ext {
// POM file
GROUP = "com.nytimes.android"
2018-03-20 18:13:44 +00:00
VERSION_NAME = "3.0.2-SNAPSHOT"
2017-01-04 19:17:53 +00:00
POM_PACKAGING = "pom"
POM_DESCRIPTION = "Store3 is built with RxJava2"
2017-01-04 19:17:53 +00:00
POM_URL = "https://github.com/nytimes/Store/"
POM_SCM_URL = "https://github.com/nytimes/Store/"
POM_SCM_CONNECTION = "scm:git:https://github.com/nytm/Store.git"
POM_SCM_DEV_CONNECTION = "scm:git:git@github.com:nytm/Store.git"
POM_LICENCE_NAME = "Apache License"
POM_LICENCE_URL = "http://www.apache.org/licenses/"
POM_LICENCE_DIST = "repo"
POM_DEVELOPER_ID = "nytimesandroid"
POM_DEVELOPER_NAME = "New York Times"
}
2016-11-29 18:59:48 +00:00
// From command line use: -PdisablePreDex to disable it: primarily for jenkins
project.ext.preDexLibs = !project.hasProperty('disablePreDex')
subprojects {
project.plugins.whenPluginAdded { plugin ->
if ("com.android.build.gradle.AppPlugin".equals(plugin.class.name)) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
} else if ("com.android.build.gradle.LibraryPlugin".equals(plugin.class.name)) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
}
}
2017-01-24 17:15:25 +00:00
project.plugins.apply('net.ltgt.errorprone')
configurations.errorprone {
resolutionStrategy.force 'com.google.errorprone:error_prone_core:2.0.15'
}
2016-11-29 18:59:48 +00:00
}
task gitHooksInit (type:Exec) {
workingDir "$projectDir"
commandLine './init-git-hooks'
}