import com.mingyuan.androidclient.buildlogic.configureKotlinJvm import com.mingyuan.androidclient.buildlogic.configureSpotless import com.mingyuan.androidclient.buildlogic.libs import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.kotlin.dsl.apply import org.gradle.kotlin.dsl.dependencies /** * Convention for pure Kotlin/JVM modules (no Android dependency) such as :core:model and * :core:domain. Keeping these modules Android-free keeps them fast to test and forces domain * logic to stay framework-agnostic. */ class JvmLibraryConventionPlugin : Plugin { override fun apply(target: Project) { with(target) { apply(plugin = "org.jetbrains.kotlin.jvm") configureKotlinJvm() configureSpotless() dependencies { "testImplementation"(libs.findLibrary("junit").get()) } } } }