From 54e862681fd9dc0d871ccfad00be9a7fbd485d15 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Thu, 12 Jan 2023 11:20:03 +0300 Subject: [PATCH] Show only modules with a readme extension in main readme --- .../space/kscience/gradle/KScienceProjectPlugin.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/space/kscience/gradle/KScienceProjectPlugin.kt b/src/main/kotlin/space/kscience/gradle/KScienceProjectPlugin.kt index 1c4b584..35a55d7 100644 --- a/src/main/kotlin/space/kscience/gradle/KScienceProjectPlugin.kt +++ b/src/main/kotlin/space/kscience/gradle/KScienceProjectPlugin.kt @@ -198,11 +198,10 @@ public open class KScienceProjectPlugin : Plugin { val modulesString = buildString { subprojects.forEach { subproject -> - val name = subproject.name - val path = subproject.path.replaceFirst(":", "").replace(":", "/") - val ext = subproject.extensions.findByType() - appendLine("\n### [$name]($path)") - if (ext != null) { +// val name = subproject.name + subproject.extensions.findByType()?.let { ext -> + val path = subproject.path.replaceFirst(":", "").replace(":", "/") + appendLine("\n### [$path]($path)") appendLine("> ${ext.description}") appendLine(">\n> **Maturity**: ${ext.maturity}") val featureString = ext.featuresString(itemPrefix = "> - ", pathPrefix = "$path/") @@ -283,7 +282,8 @@ public open class KScienceProjectPlugin : Plugin { } plugins.withType(org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin::class.java) { - rootProject.the().lockFileDirectory = rootDir.resolve("gradle") + rootProject.the().lockFileDirectory = + rootDir.resolve("gradle") } }