2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-17 15:26:23 +00:00
iceraven-browser/build.gradle

80 lines
2.0 KiB
Groovy

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath Deps.tools_androidgradle
classpath Deps.tools_kotlingradle
classpath Deps.tools_appservicesgradle
classpath Deps.androidx_safeargs
classpath Deps.allopen
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id("io.gitlab.arturbosch.detekt").version("1.0.0.RC9.2")
}
allprojects {
repositories {
google()
// Currently the main repository where appservices artifacts are published.
// This will eventually move to maven.mozilla.org
// See https://github.com/mozilla/application-services/issues/252
maven {
url "https://dl.bintray.com/mozilla-appservices/application-services"
}
maven {
url "https://snapshots.maven.mozilla.org/maven2"
}
maven {
url "https://maven.mozilla.org/maven2"
}
maven {
url "https://repo.leanplum.com/"
}
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
detekt {
// The version number is duplicated, please refer to plugins block for more details
version = "1.0.0.RC9.2"
input = files("$projectDir/app/src", "$projectDir/architecture/src")
config = files("$projectDir/config/detekt.yml")
filters = ".*test.*,.*/resources/.*,.*/tmp/.*"
reports {
html {
enabled = true
destination = file("$projectDir/build/reports/detekt.html")
}
}
}
configurations {
ktlint
}
dependencies {
ktlint "com.github.shyiko:ktlint:0.31.0"
}
task ktlint(type: JavaExec, group: "verification") {
description = "Check Kotlin code style."
classpath = configurations.ktlint
main = "com.github.shyiko.ktlint.Main"
args "app/src/**/*.kt", "architecture/src/**/*.kt"
}