的
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user