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 {
|
2021-12-20 22:15:07 +01:00
|
|
|
apply from: 'gradle/versions.gradle'
|
2017-01-14 21:44:28 +01:00
|
|
|
|
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-12-20 21:25:51 +01:00
|
|
|
classpath libs.gradle
|
|
|
|
classpath libs.kotlin
|
|
|
|
classpath libs.ktlintGradle
|
|
|
|
classpath libs.detekt
|
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
|
|
|
|
2020-04-26 08:37:24 +02:00
|
|
|
wrapper {
|
2021-12-20 21:25:51 +01:00
|
|
|
gradleVersion(libs.versions.gradle.get())
|
2017-08-09 21:56:20 +02:00
|
|
|
distributionType("all")
|
|
|
|
}
|