55 lines
1.4 KiB
Kotlin
55 lines
1.4 KiB
Kotlin
plugins {
|
|
`kotlin-dsl`
|
|
}
|
|
|
|
group = "ycharts.android.buildlogic"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly(versionCatalogLibs.android.gradle.plugin)
|
|
compileOnly(versionCatalogLibs.kotlin.gradle.plugin)
|
|
}
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
|
}
|
|
}
|
|
gradlePlugin {
|
|
plugins {
|
|
register("androidApplication") {
|
|
id = "ycharts.android.application"
|
|
implementationClass = "conventions.ApplicationConventionPlugin"
|
|
}
|
|
|
|
register("androidApplicationCompose") {
|
|
id = "ycharts.android.application.compose"
|
|
implementationClass = "conventions.ComposeApplicationConventionPlugin"
|
|
}
|
|
|
|
register("androidLibraryCompose") {
|
|
id = "ycharts.android.library.compose"
|
|
implementationClass = "conventions.LibraryComposeConventionPlugin"
|
|
}
|
|
|
|
register("androidLibrary") {
|
|
id = "ycharts.android.library"
|
|
implementationClass = "conventions.LibraryConventionPlugin"
|
|
}
|
|
|
|
register("androidTest") {
|
|
id = "ycharts.android.test"
|
|
implementationClass = "conventions.AndroidTestConventionPlugin"
|
|
}
|
|
}
|
|
}
|