habitica-android/build.gradle

63 lines
2 KiB
Groovy
Raw Normal View History

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 {
2022-05-10 15:04:32 +00:00
ext.kotlin_version = '1.6.21'
2015-04-12 11:54:29 +00:00
repositories {
2017-10-26 13:52:12 +00:00
google()
2017-10-03 13:19:05 +00:00
maven { url "https://plugins.gradle.org/m2/" }
2022-06-02 08:17:28 +00:00
mavenCentral()
2015-04-12 11:54:29 +00:00
}
dependencies {
2022-04-19 15:17:45 +00:00
classpath 'com.android.tools.build:gradle:7.1.3'
2017-10-03 13:19:05 +00:00
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
2021-09-14 07:54:08 +00:00
classpath 'com.google.gms:google-services:4.3.10'
2022-06-02 08:17:28 +00:00
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.0'
2022-05-10 15:04:32 +00:00
classpath "io.realm:realm-gradle-plugin:10.10.1"
2017-10-03 13:19:05 +00:00
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
2022-01-06 12:36:08 +00:00
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.19.0"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.5.0-rc01"
2022-02-07 20:16:52 +00:00
classpath 'com.google.firebase:perf-plugin:1.4.1'
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.41'
2015-04-12 11:54:29 +00:00
}
}
2017-10-03 13:19:05 +00:00
apply plugin: 'io.gitlab.arturbosch.detekt'
allprojects {
repositories {
2017-10-26 13:52:12 +00:00
google()
2022-03-31 13:07:59 +00:00
mavenCentral()
2017-10-03 13:19:05 +00:00
}
}
detekt {
2022-03-21 11:56:29 +00:00
source = files("Habitica/src/main/java")
config = files("detekt.yml")
2021-09-14 11:41:33 +00:00
baseline = file("${rootProject.projectDir}/detekt_baseline.xml")
reports {
xml {
2021-09-14 12:13:56 +00:00
enabled = true
destination = file("build/reports/detekt.xml")
}
html {
2021-09-14 12:13:56 +00:00
enabled = true
destination = file("build/reports/detekt.html")
}
2021-09-14 12:08:37 +00:00
sarif {
2021-09-14 12:13:56 +00:00
enabled = true
destination = file("build/reports/detekt.sarif")
}
}
2022-03-21 11:56:29 +00:00
}
tasks.named("detekt").configure {
reports {
xml.required.set(false)
html.required.set(true)
html.outputLocation.set(file("build/reports/detekt.html"))
txt.required.set(false)
sarif.required.set(true)
sarif.outputLocation.set(file("build/reports/detekt.sarif"))
}
}