83205da5ec
* Latest is 0.8.0, but 0.4.0 works. Starts to break at 0.5.0. * Kotlin Atomic Plugin working with 0.14.4 * Atomic Kotlin Plugin working with 0.15.0 * Atomic Kotlin Plugin working with 0.15.1 * Upgrade Gradle Wrapper to 7.4.1 * AGP 4.1.0 -> 4.2.0 * AGP 4.2.0 -> 7.0.2 * AGP 7.0.2 -> 7.1.2 * Kotlin 1.6.10 and Spotless Plugin 6.3.0 Upgrade * WARNING:The specified Android SDK Build Tools version (29.0.3) is ignored, as it is below the minimum supported version (30.0.3) for Android Gradle Plugin 7.1.2. * Using --rerun-tasks instead of clean. * KT Lint formatting update. Co-authored-by: Sam Edwards <samedwards@dropbox.com>
68 lines
2 KiB
Groovy
68 lines
2 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
google()
|
|
}
|
|
|
|
apply from: 'buildsystem/dependencies.gradle'
|
|
|
|
dependencies {
|
|
classpath "com.android.tools.build:gradle:${versions.androidGradlePlugin}"
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
|
|
classpath "org.jetbrains.kotlin:kotlin-serialization:${versions.kotlin}"
|
|
classpath "org.jetbrains.kotlinx:binary-compatibility-validator:${versions.binaryCompatibilityValidator}"
|
|
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${versions.dokkaGradlePlugin}"
|
|
classpath "org.jlleitschuh.gradle:ktlint-gradle:${versions.ktlintGradle}"
|
|
classpath "com.diffplug.spotless:spotless-plugin-gradle:${versions.spotlessGradlePlugin}"
|
|
classpath "org.jacoco:org.jacoco.core:${versions.jacocoGradlePlugin}"
|
|
classpath "org.jetbrains.kotlinx:atomicfu-gradle-plugin:${versions.atomicFuPlugin}"
|
|
classpath "com.vanniktech:gradle-maven-publish-plugin:${versions.mavenPublishPlugin}"
|
|
}
|
|
}
|
|
|
|
apply from: 'buildsystem/dependencies.gradle'
|
|
|
|
apply plugin: 'binary-compatibility-validator'
|
|
|
|
apiValidation {
|
|
ignoredProjects += ["app"]
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
jcenter()
|
|
}
|
|
|
|
apply plugin: 'org.jlleitschuh.gradle.ktlint'
|
|
ktlint {
|
|
version = versions.ktlint
|
|
disabledRules = ["import-ordering"]
|
|
}
|
|
|
|
|
|
// Workaround to prevent Gradle from stealing focus from other apps during tests run/etc.
|
|
// https://gist.github.com/artem-zinnatullin/4c250e04636e25797165
|
|
tasks.withType(JavaForkOptions) {
|
|
jvmArgs '-Djava.awt.headless=true'
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
apply plugin: 'com.diffplug.spotless'
|
|
spotless {
|
|
kotlin {
|
|
target 'src/**/*.kt'
|
|
}
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
plugins.withId("com.vanniktech.maven.publish") {
|
|
mavenPublish {
|
|
sonatypeHost = "S01"
|
|
}
|
|
}
|
|
}
|