Skip to content

Commit 8b1ba29

Browse files
committed
Merge branch 'main' into release
v0.2.1 release There are no functional changes. The dependent Compose Multiplatform is bumped to 1.3.1.
2 parents c233155 + 5711e3f commit 8b1ba29

File tree

12 files changed

+71
-46
lines changed

12 files changed

+71
-46
lines changed

buildSrc/build.gradle.kts

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,23 @@ plugins {
22
`kotlin-dsl`
33
}
44
repositories {
5-
//mavenLocal()
5+
mavenLocal()
66
gradlePluginPortal()
77
//maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
88
}
99

10+
val kotlinVersion = "1.8.10"
11+
val huanshankejiGradlePluginsVersion = "0.4.0"
12+
1013
dependencies {
11-
implementation(kotlin("gradle-plugin", "1.7.20"))
12-
implementation("org.jetbrains.compose:compose-gradle-plugin:1.2.1")
13-
implementation("com.huanshankeji:kotlin-common-gradle-plugins:0.3.2")
14-
implementation("com.huanshankeji.team:gradle-plugins:0.3.2")
14+
implementation(kotlin("gradle-plugin", kotlinVersion))
15+
implementation("org.jetbrains.compose:compose-gradle-plugin:1.3.1")
16+
implementation("com.huanshankeji:kotlin-common-gradle-plugins:$huanshankejiGradlePluginsVersion")
17+
implementation("com.huanshankeji.team:gradle-plugins:$huanshankejiGradlePluginsVersion")
18+
}
19+
20+
configurations.all {
21+
resolutionStrategy {
22+
force("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
23+
}
1524
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const val projectVersion = "0.2.0"
1+
const val projectVersion = "0.2.1"
22

33
object DependencyVersions {
44
val webcomponents = "2.6.0"
55
val mwc = "0.25.3"
66

77
val mdc = "13.0.0"
8-
}
8+
}

buildSrc/src/main/kotlin/lib-conventions.gradle.kts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import org.gradle.kotlin.dsl.*
77
plugins {
88
id("com.huanshankeji.kotlin-multiplatform-js-browser-conventions")
99
id("org.jetbrains.compose")
10-
id("com.huanshankeji.sonatype-ossrh-publish")
10+
id("com.huanshankeji.kotlin-multiplatform-sonatype-ossrh-publish-conventions")
1111
}
1212

1313
repositories {
@@ -16,11 +16,3 @@ repositories {
1616

1717
group = "com.huanshankeji"
1818
version = projectVersion
19-
20-
val javadocJar by tasks.registering(Jar::class) {
21-
archiveClassifier.set("javadoc")
22-
}
23-
24-
publishing.publications.withType<MavenPublication> {
25-
artifact(javadocJar)
26-
}

compose-web-common/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ kotlin {
1717
}
1818

1919
publishing.publications.withType<MavenPublication> {
20-
pomForTeamDefaultOpenSource(project, "Huanshankeji Compose for Web common", "Huanshankeji's common code for Compose for Web") {
20+
pomForTeamDefaultOpenSource(
21+
project,
22+
"Huanshankeji Compose for Web common",
23+
"Huanshankeji's common code for Compose for Web"
24+
) {
2125
`Shreck Ye`()
2226
}
2327
}

compose-web-common/src/jsMain/kotlin/com/huanshankeji/compose/web/Layouts.kt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ import org.w3c.dom.HTMLDivElement
1515

1616
// try to follow names in Android Jetpack Compose
1717

18+
// TODO: remove these deprecated functions
19+
20+
const val WITH_STYLES_DEPRECATED_MESSAGE = "The functions with `withStyles` suffixes are deprecated."
21+
1822
@Composable
1923
fun Flexbox(
2024
attrs: AttrBuilderContext<HTMLDivElement>? = null,
@@ -27,7 +31,8 @@ fun Flexbox(
2731
} + attrs, content)
2832

2933
@Composable
30-
fun Flexbox(styles: Styles? = null, content: ContentBuilder<HTMLDivElement>) =
34+
@Deprecated(WITH_STYLES_DEPRECATED_MESSAGE)
35+
fun FlexboxS(styles: Styles? = null, content: ContentBuilder<HTMLDivElement>) =
3136
Flexbox(styles.wrapInAttrs(), content)
3237

3338
@Composable
@@ -44,7 +49,8 @@ fun Column(
4449
} + attrs, content)
4550

4651
@Composable
47-
fun Column(styles: Styles? = null, fitContent: Boolean = true, content: ContentBuilder<HTMLDivElement>) =
52+
@Deprecated(WITH_STYLES_DEPRECATED_MESSAGE)
53+
fun ColumnS(styles: Styles? = null, fitContent: Boolean = true, content: ContentBuilder<HTMLDivElement>) =
4854
Column(styles.wrapInAttrs(), fitContent, content)
4955

5056
@Composable
@@ -72,7 +78,8 @@ fun Row(
7278
} + attrs, content)
7379

7480
@Composable
75-
fun Row(
81+
@Deprecated(WITH_STYLES_DEPRECATED_MESSAGE)
82+
fun RowS(
7683
styles: Styles? = null,
7784
content: ContentBuilder<HTMLDivElement>
7885
) =

compose-web-material/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ kotlin {
3939
}
4040

4141
publishing.publications.withType<MavenPublication> {
42-
pomForTeamDefaultOpenSource(project, "Compose for Web Material", "Some Material components for Compose for Web") {
42+
pomForTeamDefaultOpenSource(
43+
project,
44+
"Compose for Web Material",
45+
"Some Material components for Compose for Web"
46+
) {
4347
`Shreck Ye`()
4448
}
4549
}

gradle-plugins/build.gradle.kts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repositories {
1111
}
1212

1313
dependencies {
14-
implementation(kotlin("gradle-plugin", "1.7.20"))
14+
implementation(kotlin("gradle-plugin"))
1515
}
1616

1717

@@ -29,17 +29,15 @@ group = "com.huanshankeji"
2929
version = projectVersion
3030

3131
gradlePlugin {
32+
website.set("https://github.com/huanshankeji/compose-web-material")
33+
vcsUrl.set("$website.git")
34+
3235
plugins {
3336
getByName("com.huanshankeji.compose-web-material-conventions") {
3437
displayName = "Compose for Web Material conventions"
3538
description =
3639
"This plugin adds the needed Maven dependencies and npm devDependencies (mainly for Webpack) for a Compose for Web project with Material components."
40+
tags.set(listOf("kotlin", "kotlin-js", "compose-multiplatform", "compose-web"))
3741
}
3842
}
3943
}
40-
41-
pluginBundle {
42-
website = "https://github.com/huanshankeji/compose-web-material"
43-
vcsUrl = "$website.git"
44-
tags = listOf("kotlin", "compose", "web")
45-
}

gradle/wrapper/gradle-wrapper.jar

852 Bytes
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-all.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

gradlew

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,10 +80,10 @@ do
8080
esac
8181
done
8282

83-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84-
85-
APP_NAME="Gradle"
83+
# This is normally unused
84+
# shellcheck disable=SC2034
8685
APP_BASE_NAME=${0##*/}
86+
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
8787

8888
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
8989
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
@@ -143,12 +143,16 @@ fi
143143
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144144
case $MAX_FD in #(
145145
max*)
146+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147+
# shellcheck disable=SC3045
146148
MAX_FD=$( ulimit -H -n ) ||
147149
warn "Could not query maximum file descriptor limit"
148150
esac
149151
case $MAX_FD in #(
150152
'' | soft) :;; #(
151153
*)
154+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155+
# shellcheck disable=SC3045
152156
ulimit -n "$MAX_FD" ||
153157
warn "Could not set maximum file descriptor limit to $MAX_FD"
154158
esac

0 commit comments

Comments
 (0)