1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2024-11-23 19:56:29 -06:00
wulkanowy-mirror/build.gradle

96 lines
2.5 KiB
Groovy
Raw Normal View History

2017-03-09 14:29:23 -06:00
buildscript {
ext.kotlin_version = '1.2.51'
2017-03-09 14:29:23 -06:00
repositories {
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"
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'
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
id "com.github.ben-manes.versions" version "0.20.0"
2018-05-03 05:29:10 -05:00
}
project.ext.preDexLibs = !project.hasProperty("disablePreDex")
subprojects {
apply plugin: 'build-dashboard' // build/reports/buildDashboard/index.html
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-07-14 13:09:58 -05:00
supportVersion = "27.1.1"
flexibleAdapter = "5.0.5"
flexibleUi = "1.0.0-b5"
firebaseJob = "0.8.5"
apacheLang = "3.7"
2018-07-14 13:09:58 -05:00
apacheCollections = "4.2"
greenDao = "3.2.2"
greenDaoHelper = "v2.0.2"
2018-05-03 05:29:10 -05:00
greenDaoGradle = "3.2.2"
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"
timber = "4.7.1"
2018-06-06 12:38:54 -05:00
debugDb = "1.0.4"
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-05-25 09:35:12 -05:00
fabricGradle = "1.25.4"
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 {
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
}
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')
}
}
}
}