Skip to content

Commit 3e2040a

Browse files
committed
No longer publish the legacy module to speed up publishing
The module is still kept for a future final review for possibly useful code before complete removal.
1 parent 55257c7 commit 3e2040a

File tree

3 files changed

+47
-45
lines changed

3 files changed

+47
-45
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
2+
3+
plugins {
4+
id("common-conventions")
5+
id("com.huanshankeji.kotlin-multiplatform-jvm-and-js-browser-conventions")
6+
id("com.android.library")
7+
}
8+
9+
kotlin {
10+
androidTarget {
11+
publishLibraryVariants("release", "debug")
12+
}
13+
14+
// move to `common-conventions` if necessary
15+
16+
@OptIn(ExperimentalKotlinGradlePluginApi::class)
17+
applyDefaultHierarchyTemplate {
18+
common {
19+
group("androidxCommon") {
20+
withJvm()
21+
withAndroidTarget()
22+
group("ios")
23+
withWasmJs()
24+
}
25+
}
26+
}
27+
28+
/*
29+
sourceSets {
30+
val androidxCommonMain by creating { dependsOn(commonMain.get()) }
31+
jvmMain { dependsOn(androidxCommonMain) }
32+
iosMain { dependsOn(androidxCommonMain) }
33+
named("wasmJsMain") { dependsOn(androidxCommonMain) }
34+
}
35+
*/
36+
}
37+
38+
android {
39+
namespace = group as String
40+
41+
compileSdk = androidSdkVersion
42+
}
Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,4 @@
1-
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
2-
31
plugins {
4-
id("common-conventions")
5-
id("com.huanshankeji.kotlin-multiplatform-jvm-and-js-browser-conventions")
6-
id("com.android.library")
2+
id("lib-conventions-without-publishing")
73
id("com.huanshankeji.kotlin-multiplatform-sonatype-ossrh-publish-conventions")
8-
}
9-
10-
kotlin {
11-
androidTarget {
12-
publishLibraryVariants("release", "debug")
13-
}
14-
15-
// move to `common-conventions` if necessary
16-
17-
@OptIn(ExperimentalKotlinGradlePluginApi::class)
18-
applyDefaultHierarchyTemplate {
19-
common {
20-
group("androidxCommon") {
21-
withJvm()
22-
withAndroidTarget()
23-
group("ios")
24-
withWasmJs()
25-
}
26-
}
27-
}
28-
29-
/*
30-
sourceSets {
31-
val androidxCommonMain by creating { dependsOn(commonMain.get()) }
32-
jvmMain { dependsOn(androidxCommonMain) }
33-
iosMain { dependsOn(androidxCommonMain) }
34-
named("wasmJsMain") { dependsOn(androidxCommonMain) }
35-
}
36-
*/
37-
}
38-
39-
android {
40-
namespace = group as String
41-
42-
compileSdk = androidSdkVersion
43-
}
4+
}

compose-multiplatform-common/legacy/build.gradle.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import com.huanshankeji.team.`Shreck Ye`
2-
import com.huanshankeji.team.pomForTeamDefaultOpenSource
3-
41
plugins {
5-
`lib-conventions`
2+
`lib-conventions-without-publishing`
63
}
74

85
kotlin {
@@ -28,6 +25,7 @@ kotlin {
2825
}
2926
}
3027

28+
/*
3129
publishing.publications.withType<MavenPublication> {
3230
pomForTeamDefaultOpenSource(
3331
project,
@@ -39,3 +37,4 @@ publishing.publications.withType<MavenPublication> {
3937
`Shreck Ye`()
4038
}
4139
}
40+
*/

0 commit comments

Comments
 (0)