0.15.8-kotlin-2.1.0 #51

Merged
altavir merged 54 commits from dev into master 2024-12-09 09:49:38 +03:00
2 changed files with 19 additions and 14 deletions
Showing only changes of commit b05617ce9a - Show all commits

View File

@ -1,27 +1,26 @@
[versions] [versions]
tools = "0.14.7-kotlin-1.8.20" tools = "0.14.8-kotlin-1.8.20"
kotlin = "1.8.20" kotlin = "1.8.20"
atomicfu = "0.20.0" atomicfu = "0.20.2"
binary-compatibility-validator = "0.13.0" binary-compatibility-validator = "0.13.1"
changelog = "2.0.0" changelog = "2.0.0"
dokka = "1.8.10" dokka = "1.8.10"
kotlin-jupyter = "0.11.0-349" kotlin-jupyter = "0.11.0-360"
kotlinx-benchmark = "0.4.7" kotlinx-benchmark = "0.4.7"
kotlinx-cli = "0.3.5" kotlinx-cli = "0.3.5"
kotlinx-coroutines = "1.6.4" kotlinx-coroutines = "1.7.0-RC"
kotlinx-datetime = "0.4.0" kotlinx-datetime = "0.4.0"
kotlinx-html = "0.8.0" kotlinx-html = "0.8.0"
kotlinx-knit = "0.4.0" kotlinx-knit = "0.4.0"
kotlinx-nodejs = "0.0.7" kotlinx-nodejs = "0.0.7"
#old version due to xml inclompatibility kotlinx-serialization = "1.5.0"
kotlinx-serialization = "1.4.1" ktor = "2.3.0"
ktor = "2.2.4" xmlutil = "0.86.0"
xmlutil = "0.84.3" yamlkt = "0.13.0"
yamlkt = "0.12.0" jsBom = "1.0.0-pre.546"
jsBom = "1.0.0-pre.530" junit = "5.9.3"
junit = "5.9.2"
compose = "1.4.0" compose = "1.4.0"
logback = "1.4.6" logback = "1.4.7"
[libraries] [libraries]
atomicfu-gradle = { module = "org.jetbrains.kotlinx:atomicfu-gradle-plugin", version.ref = "atomicfu" } atomicfu-gradle = { module = "org.jetbrains.kotlinx:atomicfu-gradle-plugin", version.ref = "atomicfu" }

View File

@ -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 data class Feature(val id: String, val description: String, val ref: String?, val name: String = id)
public val features: MutableList<Feature> = ArrayList() public val features: MutableList<Feature> = mutableListOf()
/**
* A plain readme feature with description
*/
public fun feature(id: String, ref: String? = null, name: String = id, description: () -> String) { public fun feature(id: String, ref: String? = null, name: String = id, description: () -> String) {
features += Feature(id, description(), ref, name) features += Feature(id, description(), ref, name)
} }
/**
* A readme feature with HTML description
*/
public fun featureWithHtml( public fun featureWithHtml(
id: String, id: String,
ref: String? = null, ref: String? = null,