diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index f5ecdf9..42a5592 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,27 +1,26 @@ [versions] -tools = "0.14.7-kotlin-1.8.20" +tools = "0.14.8-kotlin-1.8.20" kotlin = "1.8.20" -atomicfu = "0.20.0" -binary-compatibility-validator = "0.13.0" +atomicfu = "0.20.2" +binary-compatibility-validator = "0.13.1" changelog = "2.0.0" dokka = "1.8.10" -kotlin-jupyter = "0.11.0-349" +kotlin-jupyter = "0.11.0-360" kotlinx-benchmark = "0.4.7" kotlinx-cli = "0.3.5" -kotlinx-coroutines = "1.6.4" +kotlinx-coroutines = "1.7.0-RC" kotlinx-datetime = "0.4.0" kotlinx-html = "0.8.0" kotlinx-knit = "0.4.0" kotlinx-nodejs = "0.0.7" -#old version due to xml inclompatibility -kotlinx-serialization = "1.4.1" -ktor = "2.2.4" -xmlutil = "0.84.3" -yamlkt = "0.12.0" -jsBom = "1.0.0-pre.530" -junit = "5.9.2" +kotlinx-serialization = "1.5.0" +ktor = "2.3.0" +xmlutil = "0.86.0" +yamlkt = "0.13.0" +jsBom = "1.0.0-pre.546" +junit = "5.9.3" compose = "1.4.0" -logback = "1.4.6" +logback = "1.4.7" [libraries] atomicfu-gradle = { module = "org.jetbrains.kotlinx:atomicfu-gradle-plugin", version.ref = "atomicfu" } diff --git a/src/main/kotlin/space/kscience/gradle/KScienceReadmeExtension.kt b/src/main/kotlin/space/kscience/gradle/KScienceReadmeExtension.kt index b79e64f..a63fa26 100644 --- a/src/main/kotlin/space/kscience/gradle/KScienceReadmeExtension.kt +++ b/src/main/kotlin/space/kscience/gradle/KScienceReadmeExtension.kt @@ -88,12 +88,18 @@ public class KScienceReadmeExtension(public val project: Project) { public data class Feature(val id: String, val description: String, val ref: String?, val name: String = id) - public val features: MutableList = ArrayList() + public val features: MutableList = mutableListOf() + /** + * A plain readme feature with description + */ public fun feature(id: String, ref: String? = null, name: String = id, description: () -> String) { features += Feature(id, description(), ref, name) } + /** + * A readme feature with HTML description + */ public fun featureWithHtml( id: String, ref: String? = null,