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
5 changed files with 11 additions and 19 deletions
Showing only changes of commit 8a864f97a3 - Show all commits

View File

@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Deprecated ### Deprecated
### Removed ### Removed
- Groovy gradle dependency notation.
### Fixed ### Fixed

View File

@ -1,6 +1,6 @@
[versions] [versions]
tools = "0.14.9-kotlin-1.9.0-RC-dev-1" tools = "0.14.9-kotlin-1.9.0"
kotlin = "1.9.0-RC" kotlin = "1.9.0"
atomicfu = "0.20.2" atomicfu = "0.20.2"
binary-compatibility-validator = "0.13.1" binary-compatibility-validator = "0.13.1"
changelog = "2.0.0" changelog = "2.0.0"
@ -8,7 +8,7 @@ dokka = "1.8.10"
kotlin-jupyter = "0.11.0-360" 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.7.1" kotlinx-coroutines = "1.7.2"
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"

View File

@ -1,5 +1,6 @@
package space.kscience.gradle package space.kscience.gradle
import org.gradle.api.Action
import org.gradle.api.Project import org.gradle.api.Project
import org.gradle.api.file.DuplicatesStrategy import org.gradle.api.file.DuplicatesStrategy
import org.gradle.api.plugins.ApplicationPlugin import org.gradle.api.plugins.ApplicationPlugin
@ -434,13 +435,13 @@ public open class KScienceMppExtension(project: Project) : KScienceExtension(pro
project.configure<KotlinMultiplatformExtension> { project.configure<KotlinMultiplatformExtension> {
wasm { wasm {
browser { browser {
testTask { testTask(Action {
useKarma { useKarma {
this.webpackConfig.experiments.add("topLevelAwait") this.webpackConfig.experiments.add("topLevelAwait")
useChromeHeadlessWasmGc() useChromeHeadlessWasmGc()
useConfigDirectory(project.projectDir.resolve("karma.config.d").resolve("wasm")) useConfigDirectory(project.projectDir.resolve("karma.config.d").resolve("wasm"))
} }
} })
} }
block() block()
} }
@ -473,9 +474,9 @@ public open class KScienceMppExtension(project: Project) : KScienceExtension(pro
js { js {
binaries.executable() binaries.executable()
browser { browser {
webpackTask { webpackTask(Action {
mainOutputFileName.set(bundleName) mainOutputFileName.set(bundleName)
} })
browserConfig() browserConfig()
} }
jsConfig() jsConfig()

View File

@ -142,7 +142,6 @@ public open class KScienceProjectPlugin : Plugin<Project> {
val readmeExtension = KScienceReadmeExtension(this) val readmeExtension = KScienceReadmeExtension(this)
extensions.add("readme", readmeExtension) extensions.add("readme", readmeExtension)
@Suppress("UNUSED_VARIABLE")
val generateReadme by tasks.creating { val generateReadme by tasks.creating {
group = "documentation" group = "documentation"
description = "Generate a README file if stub is present" description = "Generate a README file if stub is present"

View File

@ -2,21 +2,12 @@
The Maven coordinates of this project are `${group}:${name}:${version}`. The Maven coordinates of this project are `${group}:${name}:${version}`.
**Gradle Groovy:**
```groovy
repositories {
maven { url 'https://repo.kotlin.link' }
mavenCentral()
}
dependencies {
implementation '${group}:${name}:${version}'
}
```
**Gradle Kotlin DSL:** **Gradle Kotlin DSL:**
```kotlin ```kotlin
repositories { repositories {
maven("https://repo.kotlin.link") maven("https://repo.kotlin.link")
//uncomment to access development builds
//maven("https://maven.pkg.jetbrains.space/spc/p/sci/dev")
mavenCentral() mavenCentral()
} }