Skip to content

Commit

Permalink
<release> v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bppleman committed Aug 16, 2024
2 parents 99dcc81 + 30a2504 commit 42fff80
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,6 @@ gradle-app.setting
# End of https://www.toptal.com/developers/gitignore/api/macos,intellij+iml,vim,visualstudiocode,gradle,kotlin

build-cache

### kotlin ###
.kotlin
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

Kotlin Native library for create sub-process and redirect their I/O.

# v2.1.2
# v2.2.0

Rust is an excellent language that takes into account both performance and engineering.

Expand All @@ -21,7 +21,7 @@ In version 1.x, we use the following API to provide the function of creating chi
- `CreateChildProcess` of [win32 api]
- `java.lang.ProcessBuilder` of JVM

In version 2.0, we use the Rust standard library to provide the function of creating child processes.
In version 2.x, we use the Rust standard library to provide the function of creating child processes.

- `std::process::Command` of Rust
- `java.lang.ProcessBuilder` of JVM
Expand All @@ -45,8 +45,8 @@ It will bring

# Dependent

- Rust Standard Library 1.69.0
- Kotlin Multiplatform 1.9.21
- Rust Standard Library 1.69.0 (No support for later versions)
- Kotlin Multiplatform 2.0.10

# Usage

Expand Down Expand Up @@ -99,7 +99,6 @@ Dependency:
### 1. Dependencies

- rust toolchain - <= 1.69.0 (https://rustup.rs) (recommend)
- cross (install with `cargo install cross`)
- just (install with `cargo install just`)
- cross-compile toolchain
- x86_64-apple-darwin
Expand Down
27 changes: 15 additions & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
kotlin("multiplatform")
id("org.jetbrains.dokka")
Expand All @@ -6,24 +9,29 @@ plugins {
id("io.github.gradle-nexus.publish-plugin")
}

group = "com.kgit2"
version = "2.1.2"
val sharedGroup = "com.kgit2"
val sharedVersion = "2.2.0"

group = sharedGroup
version = sharedVersion

repositories {
mavenCentral()
gradlePluginPortal()
}

subprojects {
group = "com.kgit2"
version = "1.2.0"
group = sharedGroup
version = sharedVersion
}

kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = "17"
@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
}

withJava()
testRuns["test"].executionTask.configure {
useJUnitPlatform()
Expand Down Expand Up @@ -63,6 +71,7 @@ kotlin {
languageSettings.optIn("kotlin.ExperimentalStdlibApi")

languageSettings {
@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
freeCompilerArgs.add("-Xexpect-actual-classes")
}
Expand Down Expand Up @@ -95,12 +104,6 @@ tasks {
showStandardStreams = true
}
}

val testArg by creating {
doLast {
println(testString)
}
}
}

val ossrhUrl: String = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
Expand Down
6 changes: 3 additions & 3 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pluginManagement {
plugins {
kotlin("jvm") version "1.9.21" apply false
kotlin("multiplatform") version "1.9.21" apply false
id("org.jetbrains.dokka") version "1.9.10" apply false
kotlin("jvm") version "2.0.10" apply false
kotlin("multiplatform") version "2.0.10" apply false
id("org.jetbrains.dokka") version "1.9.20" apply false
id("io.github.gradle-nexus.publish-plugin") version "1.3.0" apply false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ actual class BufferedReader(
private val type: ReaderType,
) {

val cleaner = createCleaner(inner) { reader ->
val cleaner = createCleaner(inner to type) { (reader, type) ->
when (type) {
ReaderType.STDOUT -> {
drop_stdout(reader)
Expand Down

0 comments on commit 42fff80

Please sign in to comment.