2017-03-09 14:29:23 -06:00
|
|
|
buildscript {
|
2018-07-14 07:06:57 -05:00
|
|
|
ext.kotlin_version = '1.2.51'
|
2017-03-09 14:29:23 -06:00
|
|
|
repositories {
|
2017-09-10 08:32:45 -05:00
|
|
|
mavenCentral()
|
2018-03-04 05:49:16 -06:00
|
|
|
google()
|
2018-06-08 17:59:39 -05:00
|
|
|
jcenter()
|
2018-03-04 09:53:53 -06:00
|
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
2017-03-09 14:29:23 -06:00
|
|
|
}
|
|
|
|
dependencies {
|
2018-06-08 17:59:39 -05:00
|
|
|
classpath 'com.android.tools.build:gradle:3.1.3'
|
2018-05-03 05:29:10 -05:00
|
|
|
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.2"
|
2018-07-14 07:06:57 -05:00
|
|
|
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
|
2018-05-03 05:29:10 -05:00
|
|
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
|
2018-07-14 07:06:57 -05:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
2017-03-09 14:29:23 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-03 05:29:10 -05:00
|
|
|
plugins {
|
|
|
|
// gradle dependencyUpdates -Drevision=release
|
2018-07-14 07:06:57 -05:00
|
|
|
id "com.github.ben-manes.versions" version "0.20.0"
|
2018-05-03 05:29:10 -05:00
|
|
|
}
|
|
|
|
|
2017-09-23 15:17:13 -05:00
|
|
|
project.ext.preDexLibs = !project.hasProperty("disablePreDex")
|
|
|
|
subprojects {
|
2018-07-14 07:06:57 -05:00
|
|
|
apply plugin: 'build-dashboard' // build/reports/buildDashboard/index.html
|
|
|
|
|
2017-09-23 15:17:13 -05:00
|
|
|
project.plugins.whenPluginAdded { plugin ->
|
|
|
|
if ("com.android.build.gradle.AppPlugin" == plugin.class.name) {
|
|
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
|
|
|
} else if ("com.android.build.gradle.LibraryPlugin" == plugin.class.name) {
|
|
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-26 09:32:33 -06:00
|
|
|
ext {
|
|
|
|
GROUP_ID = "io.github.wulkanowy"
|
2018-03-22 16:42:08 -05:00
|
|
|
|
2018-07-14 13:09:58 -05:00
|
|
|
supportVersion = "27.1.1"
|
|
|
|
flexibleAdapter = "5.0.5"
|
|
|
|
flexibleUi = "1.0.0-b5"
|
2018-03-22 16:42:08 -05:00
|
|
|
firebaseJob = "0.8.5"
|
|
|
|
apacheLang = "3.7"
|
2018-07-14 13:09:58 -05:00
|
|
|
apacheCollections = "4.2"
|
2018-03-22 16:42:08 -05:00
|
|
|
greenDao = "3.2.2"
|
|
|
|
greenDaoHelper = "v2.0.2"
|
2018-05-03 05:29:10 -05:00
|
|
|
greenDaoGradle = "3.2.2"
|
2018-03-22 16:42:08 -05:00
|
|
|
butterknife = "8.8.1"
|
2018-05-03 05:29:10 -05:00
|
|
|
threeTenABP = "1.1.0"
|
2018-05-07 09:05:57 -05:00
|
|
|
dagger2 = "2.16"
|
2018-05-03 05:29:10 -05:00
|
|
|
ahbottom = "2.2.0"
|
|
|
|
jsoup = "1.11.3"
|
2018-05-25 09:35:12 -05:00
|
|
|
gson = "2.8.5"
|
2018-07-14 13:09:58 -05:00
|
|
|
ossLicenses = "16.0.0"
|
2018-06-06 12:38:54 -05:00
|
|
|
slf4jApi = "1.7.25"
|
|
|
|
slf4jTimber = "1.0.1"
|
2018-07-14 07:06:57 -05:00
|
|
|
timber = "4.7.1"
|
2018-06-06 12:38:54 -05:00
|
|
|
|
2018-07-14 07:06:57 -05:00
|
|
|
debugDb = "1.0.4"
|
2018-03-22 16:42:08 -05:00
|
|
|
|
|
|
|
junit = "4.12"
|
2018-07-14 13:09:58 -05:00
|
|
|
mockito = "2.19.1"
|
2018-05-03 05:29:10 -05:00
|
|
|
testRunner = "1.0.2"
|
2018-03-22 16:42:08 -05:00
|
|
|
|
2018-05-25 09:35:12 -05:00
|
|
|
fabricGradle = "1.25.4"
|
2018-07-14 07:06:57 -05:00
|
|
|
crashlyticsSdk = "2.9.4"
|
2018-05-25 13:33:45 -05:00
|
|
|
crashlyticsAnswers = "1.4.2"
|
|
|
|
|
|
|
|
playPublisher = "1.2.2"
|
2017-11-26 09:32:33 -06:00
|
|
|
}
|
|
|
|
|
2017-03-09 14:29:23 -06:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
2017-09-10 08:32:45 -05:00
|
|
|
mavenCentral()
|
2018-03-04 05:49:16 -06:00
|
|
|
google()
|
2018-06-08 17:59:39 -05:00
|
|
|
jcenter()
|
2017-03-09 14:29:23 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task clean(type: Delete) {
|
|
|
|
delete rootProject.buildDir
|
|
|
|
}
|
2018-07-14 07:06:57 -05:00
|
|
|
|
|
|
|
dependencyUpdates.resolutionStrategy {
|
|
|
|
componentSelection { rules ->
|
|
|
|
rules.all { ComponentSelection selection ->
|
|
|
|
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
|
|
|
|
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
|
|
|
|
}
|
|
|
|
if (rejected) {
|
|
|
|
selection.reject('Release candidate')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|