AndroidAPS/build.gradle.kts

63 lines
1.8 KiB
Plaintext
Raw Normal View History

2023-09-27 14:52:36 +02:00
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
2023-12-01 14:13:19 +01:00
classpath("com.android.tools.build:gradle:8.2.0")
2023-09-27 14:52:36 +02:00
classpath("com.google.gms:google-services:4.4.0")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.9")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath(kotlin("gradle-plugin", version = Libs.Kotlin.kotlin))
classpath(kotlin("allopen", version = Libs.Kotlin.kotlin))
classpath(kotlin("serialization", version = Libs.Kotlin.kotlin))
}
}
plugins {
id("org.jlleitschuh.gradle.ktlint") version "12.0.3"
2023-09-27 14:52:36 +02:00
}
allprojects {
repositories {
google()
mavenCentral()
maven("https://maven.google.com")
maven("https://jitpack.io")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf(
"-opt-in=kotlin.RequiresOptIn",
2023-10-14 23:24:34 +02:00
"-opt-in=kotlin.ExperimentalUnsignedTypes",
2023-09-27 14:52:36 +02:00
"-Xjvm-default=all" //Support @JvmDefault
)
jvmTarget = "11"
}
}
gradle.projectsEvaluated {
tasks.withType<JavaCompile> {
val compilerArgs = options.compilerArgs
compilerArgs.add("-Xlint:deprecation")
compilerArgs.add("-Xlint:unchecked")
}
}
apply(plugin = "org.jlleitschuh.gradle.ktlint")
apply(plugin = "jacoco")
}
// Setup all reports aggregation
apply(from = "jacoco_aggregation.gradle.kts")
2023-09-27 14:52:36 +02:00
tasks.register<Delete>("clean").configure {
delete(rootProject.buildDir)
}