F-107: kmpLibrary DSL + multiplatform apply + kmpProjectConfiguration#216
Merged
Conversation
Ship tools.forma.kmp apply path: ScriptHandlerScope kmpProjectConfiguration (stores KmpProjectSettings, classpath-only KGP/AGP), feature applicator for org.jetbrains.kotlin.multiplatform + com.android.kotlin.multiplatform.library (jvm+android defaults), commonMain/commonTest deps, and kmpLibrary/Api/Util/ TestUtil DSLs. No :kmp→:android. Unit tests + jacoco happy-path green.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements F-107 (P11 KMP): type-owned Kotlin Multiplatform apply path and public DSL on
tools.forma.kmp.kmpProjectConfiguration(ScriptHandlerScope) — registers KMP matrix defaults, storesKmpProjectSettings(jvm+android default on,jvmTarget = "11"), puts Kotlin MPP (+ AGP when android) on buildscript classpath onlyorg.jetbrains.kotlin.multiplatform+com.android.kotlin.multiplatform.library(AGP 9.3 spike; no classiccom.android.libraryfallback); jvm target; fail-fast if android platform withoutandroidProjectConfigurationkmpLibrary/kmpApi/kmpUtil/kmpTestUtil(Unit); deps → commonMain / commonTest via Kotlin source-set API + same project-dep validators:kmp↛:android(compileOnlyAGP + string plugin ids / reflection)docs/KMP-TARGETS.md§4.3 spike result; TICKETS/PROGRESS/ARCHITECTUREOut of scope (next tickets): F-108 consumer edges, F-109 example, F-110 user docs; platform-specific dep attrs deferred.
Verify (host)
Both BUILD SUCCESSFUL.
Test plan
:kmp:test(registry 5 + settings 4 + resolution 6)test+ jacoco happy-path gate