From d4d90f6aaa32bad0d1d888aadc28f10719de5063 Mon Sep 17 00:00:00 2001 From: Shreck Ye Date: Fri, 10 Mar 2023 20:57:17 +0800 Subject: [PATCH 1/3] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index eca6431..51c9da7 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,8 @@ dependencies { implementation("org.jetbrains.compose:compose-gradle-plugin:1.3.1") api("com.huanshankeji:common-gradle-dependencies:0.5.0-20230310") { exclude("org.jetbrains.kotlin") } - implementation("com.huanshankeji:kotlin-common-gradle-plugins:0.3.2") { exclude("org.jetbrains.kotlin") } - implementation("com.huanshankeji:architecture-common-gradle-plugins:0.3.2") { exclude("org.jetbrains.kotlin") } + implementation("com.huanshankeji:kotlin-common-gradle-plugins:0.4.0") { exclude("org.jetbrains.kotlin") } + implementation("com.huanshankeji:architecture-common-gradle-plugins:0.4.0") { exclude("org.jetbrains.kotlin") } } ``` @@ -38,8 +38,8 @@ dependencies { implementation("org.jetbrains.compose:compose-gradle-plugin:1.3.1") api("com.huanshankeji:common-gradle-dependencies:0.5.0-20230310") - implementation("com.huanshankeji:kotlin-common-gradle-plugins:0.3.2") - implementation("com.huanshankeji:architecture-common-gradle-plugins:0.3.2") + implementation("com.huanshankeji:kotlin-common-gradle-plugins:0.4.0") + implementation("com.huanshankeji:architecture-common-gradle-plugins:0.4.0") } configurations.all { From cdaa84f8fc3834b93462d681a8378c8797197cda Mon Sep 17 00:00:00 2001 From: Shreck Ye Date: Sun, 12 Mar 2023 19:44:51 +0800 Subject: [PATCH 2/3] Upgrade to "com.huanshankeji:common-gradle-dependencies:0.5.0-20230310" in the build source --- architecture-common-gradle-plugins/build.gradle.kts | 2 +- buildSrc/build.gradle.kts | 2 +- buildSrc/src/main/kotlin/VersionsAndDependencies.kt | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/architecture-common-gradle-plugins/build.gradle.kts b/architecture-common-gradle-plugins/build.gradle.kts index 3a93614..b010bd8 100644 --- a/architecture-common-gradle-plugins/build.gradle.kts +++ b/architecture-common-gradle-plugins/build.gradle.kts @@ -16,7 +16,7 @@ dependencies { enabling it to always depend on a release version. */ implementation("com.huanshankeji:common-gradle-dependencies:$pluginProjectDependentStableCommonGradleDependenciesVersion") - implementation(commonGradleClasspathDependencies.composeJb.gradlePlugin.pluginProject()) + implementation(commonGradleClasspathDependencies.composeMultiplatform.gradlePlugin.pluginProject()) } gradlePlugin { diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 93f9503..bb27cda 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -32,5 +32,5 @@ dependencies { // This is a bootstrapping dependency (cross-version self-dependency). Try not to update its version unless necessary. implementation("com.huanshankeji.team:gradle-plugins:0.3.0") { exclude("org.jetbrains.kotlin") } // This is also a bootstrapping dependency. - implementation("com.huanshankeji:common-gradle-dependencies:0.4.0-20230223") { exclude("org.jetbrains.kotlin") } + implementation("com.huanshankeji:common-gradle-dependencies:0.5.0-20230310") { exclude("org.jetbrains.kotlin") } } diff --git a/buildSrc/src/main/kotlin/VersionsAndDependencies.kt b/buildSrc/src/main/kotlin/VersionsAndDependencies.kt index 585142a..0a1d1d8 100644 --- a/buildSrc/src/main/kotlin/VersionsAndDependencies.kt +++ b/buildSrc/src/main/kotlin/VersionsAndDependencies.kt @@ -6,12 +6,13 @@ val commonGradleClasspathDependencies = CommonGradleClasspathDependencies(common val kotlinVersion = "1.8.10" // for Compose 1.3.1 -val alignedPluginVersion = "0.4.0-SNAPSHOT" +val alignedPluginVersion = "0.4.1-SNAPSHOT" // "x.y.z" indicates the version of the way of organizing the code, // and the date indicates the version when the dependency versions are updated. val commonGradleDependenciesVersion = "0.5.0-20230310-SNAPSHOT" +// This is the source dependency version. There is another build source dependency in "buildSrc/build.gradle.kts". val pluginProjectDependentStableCommonGradleDependenciesVersion = "0.5.0-20230310".apply { require(!endsWith("SNAPSHOT")) } From 35a0b0abce1d83a2f63c62e892009fb1e752341a Mon Sep 17 00:00:00 2001 From: Shreck Ye Date: Sun, 12 Mar 2023 20:17:14 +0800 Subject: [PATCH 3/3] Add a task to publish all the Gradle Plugins of the Gradle Plugin projects --- build.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 1241019..f2ba312 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,11 @@ tasks.wrapper { distributionType = Wrapper.DistributionType.ALL } + +evaluationDependsOnChildren() +task("publishPluginProjectPlugins") { + group = "plugin portal" + + val pluginProjects = subprojects.filter { it.name.endsWith("plugins") } + pluginProjects.forEach { dependsOn(it.tasks.named("publishPlugins")) } +}