2015-07-26 17:03:28 +02:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
buildscript {
|
2017-01-14 21:44:28 +01:00
|
|
|
apply from: 'dependencies.gradle'
|
|
|
|
|
2018-10-06 13:37:12 +02:00
|
|
|
ext.bootstrap = [
|
|
|
|
kotlinModule : "${project.rootDir}/gradle_scripts/kotlin-module-bootstrap.gradle",
|
2018-10-06 13:52:14 +02:00
|
|
|
androidModule : "${project.rootDir}/gradle_scripts/android-module-bootstrap.gradle"
|
2018-10-06 13:37:12 +02:00
|
|
|
]
|
|
|
|
|
2015-07-26 17:03:28 +02:00
|
|
|
repositories {
|
2017-12-21 10:12:10 +01:00
|
|
|
google()
|
2021-05-08 22:20:22 +02:00
|
|
|
mavenCentral()
|
2017-07-30 17:05:57 +02:00
|
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
2015-07-26 17:03:28 +02:00
|
|
|
}
|
|
|
|
dependencies {
|
2021-04-17 14:32:04 +02:00
|
|
|
classpath gradlePlugins.gradle
|
2017-03-02 06:37:51 +01:00
|
|
|
classpath gradlePlugins.kotlin
|
2017-07-29 22:31:20 +02:00
|
|
|
classpath gradlePlugins.ktlintGradle
|
2017-12-21 10:16:30 +01:00
|
|
|
classpath gradlePlugins.detekt
|
2018-09-11 22:21:55 +02:00
|
|
|
classpath gradlePlugins.jacoco
|
2015-07-26 17:03:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
2017-07-30 17:05:57 +02:00
|
|
|
// Buildscript here is required by detekt
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
2021-05-08 22:20:22 +02:00
|
|
|
mavenCentral()
|
2017-12-21 10:12:10 +01:00
|
|
|
google()
|
2017-07-30 17:05:57 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-26 17:03:28 +02:00
|
|
|
repositories {
|
2021-05-08 22:20:22 +02:00
|
|
|
mavenCentral()
|
2018-04-04 21:26:31 +02:00
|
|
|
google()
|
2021-05-20 18:41:15 +02:00
|
|
|
maven { url 'https://jitpack.io' }
|
2015-07-26 17:03:28 +02:00
|
|
|
}
|
2021-05-24 12:04:18 +02:00
|
|
|
|
|
|
|
// Set Kotlin JVM target to the same for all subprojects
|
|
|
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
2015-07-26 17:03:28 +02:00
|
|
|
}
|
2017-07-30 22:50:05 +02:00
|
|
|
|
2017-08-09 21:56:20 +02:00
|
|
|
apply from: 'gradle_scripts/jacoco.gradle'
|
|
|
|
|
2020-04-26 08:37:24 +02:00
|
|
|
wrapper {
|
2017-08-09 21:56:20 +02:00
|
|
|
gradleVersion(versions.gradle)
|
|
|
|
distributionType("all")
|
|
|
|
}
|