Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ plugins {
buildscript {
dependencies {
classpath(libs.android.gradle.plugin)
classpath(libs.burst.gradle.plugin)
classpath(libs.test.balloon.gradle.plugin)
classpath(libs.dokka)
classpath(libs.jmh.gradle.plugin)
classpath(libs.binary.compatibility.validator.gradle.plugin)
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[versions]
burst = "2.10.2"
jmh = "1.37"
kotlin = "2.2.21"
# Set to lower version than KGP version to maximize compatibility
kotlinCoreLibrariesVersion = "2.1.21"
ktlint = "0.48.2"
testBalloon = "1.2.0-Beta1"

[libraries]
android-desugar-jdk-libs = { module = "com.android.tools:desugar_jdk_libs", version = "2.1.5" }
Expand All @@ -13,8 +13,6 @@ androidx-test-ext-junit = { module = "androidx.test.ext:junit", version = "1.3.0
androidx-test-runner = { module = "androidx.test:runner", version = "1.7.0" }
binary-compatibility-validator-gradle-plugin = { module = "org.jetbrains.kotlinx.binary-compatibility-validator:org.jetbrains.kotlinx.binary-compatibility-validator.gradle.plugin", version = "0.18.1" }
bnd = { module = "biz.aQute.bnd:biz.aQute.bnd.gradle", version = "7.4.0" }
burst-gradle-plugin = { module = "app.cash.burst:burst-gradle-plugin", version.ref = "burst" }
burst-runtime = { module = "app.cash.burst:burst", version.ref = "burst" }
dokka = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version = "2.2.0" }
jmh-core = { module = "org.openjdk.jmh:jmh-core", version.ref = "jmh" }
jmh-generator = { module = "org.openjdk.jmh:jmh-generator-annprocess", version.ref = "jmh" }
Expand All @@ -30,3 +28,5 @@ test-jimfs = "com.google.jimfs:jimfs:1.3.2"
test-junit = { module = "junit:junit", version = "4.13.2" }
test-junit5 = { module = "org.junit.jupiter:junit-jupiter-api", version = "5.14.4" }
vanniktech-publish-plugin = { module = "com.vanniktech:gradle-maven-publish-plugin", version = "0.37.0" }
test-balloon-core = {module = "de.infix.testBalloon:testBalloon-framework-core", version.ref = "testBalloon"}
test-balloon-gradle-plugin = { module = "de.infix.testBalloon:testBalloon-gradle-plugin", version.ref = "testBalloon" }
3 changes: 2 additions & 1 deletion okio-nodefilesystem/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import org.jetbrains.kotlin.gradle.dsl.JsModuleKind

plugins {
kotlin("multiplatform")
id("app.cash.burst")
id("de.infix.testBalloon")
id("org.jetbrains.dokka")
id("com.vanniktech.maven.publish.base")
id("binary-compatibility-validator")
Expand Down Expand Up @@ -43,6 +43,7 @@ kotlin {
dependencies {
implementation(libs.kotlin.test)
implementation(libs.kotlin.time)
implementation(libs.test.balloon.core)

implementation(projects.okioFakefilesystem)
implementation(projects.okioTestingSupport)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,22 @@
*/
package okio

import de.infix.testBalloon.framework.core.testSuite
import kotlin.time.Clock

class NodeJsFileSystemTest : AbstractFileSystemTest(
clock = Clock.System,
fileSystem = NodeJsFileSystem,
windowsLimitations = Path.DIRECTORY_SEPARATOR == "\\",
allowClobberingEmptyDirectories = Path.DIRECTORY_SEPARATOR == "\\",
allowAtomicMoveFromFileToDirectory = false,
temporaryDirectory = FileSystem.SYSTEM_TEMPORARY_DIRECTORY,
closeBehavior = CloseBehavior.DoesNothing,
)
val NodeJsFileSystemTest by testSuite {
fileSystemTests(
newFixture = {
FileSystemFixture(
clock = Clock.System,
fileSystem = NodeJsFileSystem,
windowsLimitations = Path.DIRECTORY_SEPARATOR == "\\",
allowClobberingEmptyDirectories = Path.DIRECTORY_SEPARATOR == "\\",
allowAtomicMoveFromFileToDirectory = false,
temporaryDirectory = FileSystem.SYSTEM_TEMPORARY_DIRECTORY,
closeBehavior = CloseBehavior.DoesNothing,
variant = FileSystemVariant.NodeJs,
)
},
)
}
3 changes: 1 addition & 2 deletions okio-testing-support/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompileTool

plugins {
kotlin("multiplatform")
id("app.cash.burst")
id("build-support")
}

Expand All @@ -20,8 +19,8 @@ kotlin {
dependencies {
api(projects.okio)
api(libs.kotlin.test)
api(libs.burst.runtime)
api(libs.test.assertk)
api(libs.test.balloon.core)
}
}

Expand Down
Loading
Loading