build: build-logic 约定插件 (mcl.*)
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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<Project> {
|
||||
override fun apply(target: Project) {
|
||||
with(target) {
|
||||
apply(plugin = "org.jetbrains.kotlin.jvm")
|
||||
configureKotlinJvm()
|
||||
configureSpotless()
|
||||
dependencies {
|
||||
"testImplementation"(libs.findLibrary("junit").get())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user