mirror of
https://github.com/JakeWharton/mosaic.git
synced 2025-11-02 13:00:09 +08:00
Inject the whole compiler coordinate triple (#116)
This will make it easier to switch to JB Compose. Also clean up some other version catalog stuff.
This commit is contained in:
@ -1,21 +1,16 @@
|
|||||||
[versions]
|
[versions]
|
||||||
kotlin = "1.8.10"
|
kotlin = "1.8.10"
|
||||||
kotlinx-coroutines = "1.6.4"
|
|
||||||
androidx-compose-compiler = "1.4.2"
|
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
kotlin-compiler = { module = "org.jetbrains.kotlin:kotlin-compiler", version.ref = "kotlin" }
|
|
||||||
kotlin-gradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
|
kotlin-gradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
|
||||||
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
|
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
|
||||||
|
|
||||||
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" }
|
kotlinx-coroutines-core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4"
|
||||||
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "kotlinx-coroutines" }
|
|
||||||
|
|
||||||
android-gradlePlugin = "com.android.tools.build:gradle:7.4.1"
|
android-gradlePlugin = "com.android.tools.build:gradle:7.4.1"
|
||||||
|
|
||||||
androidx-compose-compiler = { module = "androidx.compose.compiler:compiler", version.ref = "androidx-compose-compiler" }
|
compose-compiler = "androidx.compose.compiler:compiler:1.4.2"
|
||||||
|
compose-runtime = "org.jetbrains.compose.runtime:runtime:1.3.0"
|
||||||
jetbrains-compose-runtime = "org.jetbrains.compose.runtime:runtime:1.3.0"
|
|
||||||
|
|
||||||
maven-publish-gradlePlugin = "com.vanniktech:gradle-maven-publish-plugin:0.14.0"
|
maven-publish-gradlePlugin = "com.vanniktech:gradle-maven-publish-plugin:0.14.0"
|
||||||
dokka-gradlePlugin = "org.jetbrains.dokka:dokka-gradle-plugin:1.7.20"
|
dokka-gradlePlugin = "org.jetbrains.dokka:dokka-gradle-plugin:1.7.20"
|
||||||
|
|||||||
@ -43,6 +43,8 @@ buildConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
packageName('com.jakewharton.mosaic.gradle')
|
packageName('com.jakewharton.mosaic.gradle')
|
||||||
buildConfigField("String", "composeCompilerVersion", "\"${libs.versions.androidx.compose.compiler.get()}\"")
|
buildConfigField("String", "composeCompilerGroupId", "\"${libs.compose.compiler.get().module.group}\"")
|
||||||
|
buildConfigField("String", "composeCompilerArtifactId", "\"${libs.compose.compiler.get().module.name}\"")
|
||||||
|
buildConfigField("String", "composeCompilerVersion", "\"${libs.compose.compiler.get().version}\"")
|
||||||
buildConfigField("String", "mosaicVersion", "\"${project.version}\"")
|
buildConfigField("String", "mosaicVersion", "\"${project.version}\"")
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,8 +18,8 @@ class MosaicPlugin : KotlinCompilerPluginSupportPlugin {
|
|||||||
override fun getCompilerPluginId() = "com.jakewharton.mosaic"
|
override fun getCompilerPluginId() = "com.jakewharton.mosaic"
|
||||||
|
|
||||||
override fun getPluginArtifact() = SubpluginArtifact(
|
override fun getPluginArtifact() = SubpluginArtifact(
|
||||||
"androidx.compose.compiler",
|
composeCompilerGroupId,
|
||||||
"compiler",
|
composeCompilerArtifactId,
|
||||||
composeCompilerVersion,
|
composeCompilerVersion,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@ kotlin {
|
|||||||
sourceSets {
|
sourceSets {
|
||||||
commonMain {
|
commonMain {
|
||||||
dependencies {
|
dependencies {
|
||||||
api libs.jetbrains.compose.runtime
|
api libs.compose.runtime
|
||||||
api libs.kotlinx.coroutines.core
|
api libs.kotlinx.coroutines.core
|
||||||
implementation libs.codepoints
|
implementation libs.codepoints
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user