46 lines
1.1 KiB
Groovy
46 lines
1.1 KiB
Groovy
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
sourceCompatibility = JavaVersion.VERSION_17.toString()
|
|
targetCompatibility = JavaVersion.VERSION_17.toString()
|
|
}
|
|
|
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
}
|
|
}
|
|
|
|
rootProject.buildDir = "../build"
|
|
subprojects {
|
|
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
|
project.evaluationDependsOn(":app")
|
|
}
|
|
|
|
subprojects { p ->
|
|
// Força especificamente o plugin qr_code_scanner
|
|
if (p.name == "qr_code_scanner") {
|
|
p.tasks.withType(JavaCompile).configureEach {
|
|
sourceCompatibility = JavaVersion.VERSION_17.toString()
|
|
targetCompatibility = JavaVersion.VERSION_17.toString()
|
|
}
|
|
p.tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
|
kotlinOptions { jvmTarget = "17" }
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
tasks.register("clean", Delete) {
|
|
delete rootProject.buildDir
|
|
}
|
|
|
|
buildscript {
|
|
ext.kotlin_version = '2.0.20'
|
|
}
|