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 {
|
2018-11-05 12:57:42 +00:00
|
|
|
ext.kotlin_version = '1.3.0'
|
2018-10-17 14:28:23 +00:00
|
|
|
ext.build_tools_version = '28.0.3'
|
2018-08-08 14:21:26 +00:00
|
|
|
ext.sdk_version = 28
|
2017-10-08 16:31:48 +00:00
|
|
|
|
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 {
|
2018-10-17 14:28:23 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:3.2.1'
|
2017-10-03 13:19:05 +00:00
|
|
|
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
|
2018-07-05 11:24:58 +00:00
|
|
|
classpath 'com.google.gms:google-services:4.0.1'
|
2018-10-29 15:39:10 +00:00
|
|
|
classpath "io.realm:realm-gradle-plugin:5.7.0"
|
2017-10-03 13:19:05 +00:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
|
|
|
classpath "gradle.plugin.io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.0.0.RC4-3"
|
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
|
|
|
}
|
|
|
|
|
}
|