2fas-android/buildlogic/build.gradle.kts

40 lines
1.0 KiB
Plaintext
Raw Normal View History

@Suppress("DSL_SCOPE_VIOLATION")
plugins {
`kotlin-dsl`
}
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
java {
2023-02-25 10:55:11 +01:00
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
dependencies {
2023-02-25 10:55:11 +01:00
compileOnly("com.android.tools.build:gradle:${libs.versions.agp.get()}")
compileOnly("org.jetbrains.kotlin:kotlin-gradle-plugin:${libs.versions.kotlin.get()}")
}
gradlePlugin {
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
register("TwoFasComposePlugin") {
id = "twofas.compose"
implementationClass = "com.twofasapp.buildlogic.TwoFasComposePlugin"
}
register("TwoFasAndroidLibraryPlugin") {
id = "twofas.androidLibrary"
implementationClass = "com.twofasapp.buildlogic.TwoFasAndroidLibraryPlugin"
}
register("TwoFasAndroidApplicationPlugin") {
id = "twofas.androidApplication"
implementationClass = "com.twofasapp.buildlogic.TwoFasAndroidApplicationPlugin"
}
}
}