2015-04-12 11:54:29 +00:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
|
|
|
|
|
buildscript {
|
2017-10-03 13:19:05 +00:00
|
|
|
ext.kotlin_version = '1.1.51'
|
2017-10-26 13:52:12 +00:00
|
|
|
ext.build_tools_version = '26.0.2'
|
2017-10-08 16:31:48 +00:00
|
|
|
ext.sdk_version = 26
|
|
|
|
|
|
2015-04-12 11:54:29 +00:00
|
|
|
repositories {
|
|
|
|
|
jcenter()
|
2017-10-26 13:52:12 +00:00
|
|
|
google()
|
2017-10-03 13:19:05 +00:00
|
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
2015-04-12 11:54:29 +00:00
|
|
|
}
|
|
|
|
|
dependencies {
|
2017-10-26 13:52:12 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:3.0.0'
|
2017-10-03 13:19:05 +00:00
|
|
|
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
|
2017-10-26 13:52:12 +00:00
|
|
|
classpath 'com.google.gms:google-services:3.1.1'
|
2017-10-03 13:19:05 +00:00
|
|
|
classpath "io.realm:realm-gradle-plugin:3.7.2"
|
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
2017-11-01 11:04:18 +00:00
|
|
|
classpath 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2'
|
2017-10-03 13:19:05 +00:00
|
|
|
classpath "gradle.plugin.io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.0.0.RC4-3"
|
2015-04-12 11:54:29 +00:00
|
|
|
}
|
2017-10-03 13:19:05 +00:00
|
|
|
|
|
|
|
|
// Exclude the version that the android plugin depends on.
|
|
|
|
|
configurations.classpath.exclude group: 'com.android.tools.external.lombok'
|
2015-04-12 11:54:29 +00:00
|
|
|
}
|
2015-06-20 18:40:53 +00:00
|
|
|
|
2017-10-03 13:19:05 +00:00
|
|
|
apply plugin: 'io.gitlab.arturbosch.detekt'
|
|
|
|
|
|
2015-06-20 18:40:53 +00:00
|
|
|
allprojects {
|
|
|
|
|
repositories {
|
|
|
|
|
jcenter()
|
2017-10-26 13:52:12 +00:00
|
|
|
google()
|
2017-10-03 13:19:05 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
detekt {
|
|
|
|
|
profile("main") {
|
|
|
|
|
input = "$projectDir/Habitica/src/main/java"
|
|
|
|
|
config = "$projectDir/detekt.yml"
|
|
|
|
|
output = "$projectDir/reports/detekt"
|
2015-06-20 18:40:53 +00:00
|
|
|
}
|
|
|
|
|
}
|