wulkanowy-mod/build.gradle

96 lines
2.5 KiB
Groovy
Raw Normal View History

2017-03-09 21:29:23 +01:00
buildscript {
ext.kotlin_version = '1.2.51'
2017-03-09 21:29:23 +01:00
repositories {
mavenCentral()
2018-03-04 12:49:16 +01:00
google()
2018-06-09 00:59:39 +02:00
jcenter()
2018-03-04 16:53:53 +01:00
maven { url "https://plugins.gradle.org/m2/" }
2017-03-09 21:29:23 +01:00
}
dependencies {
2018-06-09 00:59:39 +02:00
classpath 'com.android.tools.build:gradle:3.1.3'
2018-05-03 12:29:10 +02: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 12:29:10 +02:00
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
2017-03-09 21:29:23 +01:00
}
}
2018-05-03 12:29:10 +02:00
plugins {
// gradle dependencyUpdates -Drevision=release
id "com.github.ben-manes.versions" version "0.20.0"
2018-05-03 12:29:10 +02: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 16:32:33 +01:00
ext {
GROUP_ID = "io.github.wulkanowy"
2018-07-14 20:09:58 +02:00
supportVersion = "27.1.1"
flexibleAdapter = "5.0.5"
flexibleUi = "1.0.0-b5"
firebaseJob = "0.8.5"
apacheLang = "3.7"
2018-07-14 20:09:58 +02:00
apacheCollections = "4.2"
greenDao = "3.2.2"
greenDaoHelper = "v2.0.2"
2018-05-03 12:29:10 +02:00
greenDaoGradle = "3.2.2"
butterknife = "8.8.1"
2018-05-03 12:29:10 +02:00
threeTenABP = "1.1.0"
2018-05-07 16:05:57 +02:00
dagger2 = "2.16"
2018-05-03 12:29:10 +02:00
ahbottom = "2.2.0"
jsoup = "1.11.3"
2018-05-25 16:35:12 +02:00
gson = "2.8.5"
2018-07-14 20:09:58 +02:00
ossLicenses = "16.0.0"
2018-06-06 19:38:54 +02:00
slf4jApi = "1.7.25"
slf4jTimber = "1.0.1"
timber = "4.7.1"
2018-06-06 19:38:54 +02:00
debugDb = "1.0.4"
junit = "4.12"
2018-07-14 20:09:58 +02:00
mockito = "2.19.1"
2018-05-03 12:29:10 +02:00
testRunner = "1.0.2"
2018-05-25 16:35:12 +02:00
fabricGradle = "1.25.4"
crashlyticsSdk = "2.9.4"
2018-05-25 20:33:45 +02:00
crashlyticsAnswers = "1.4.2"
playPublisher = "1.2.2"
2017-11-26 16:32:33 +01:00
}
2017-03-09 21:29:23 +01:00
allprojects {
repositories {
mavenCentral()
2018-03-04 12:49:16 +01:00
google()
2018-06-09 00:59:39 +02:00
jcenter()
2017-03-09 21:29:23 +01: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')
}
}
}
}