Skip to content

Commit

Permalink
Merge pull request #6 from jakubriegel/develop
Browse files Browse the repository at this point in the history
 more default imports and 0.2 release
  • Loading branch information
jakubriegel authored Aug 30, 2019
2 parents cccda87 + 38ec3a6 commit 782ad40
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ val uploadConfig by extra {

allprojects {
group = "eu.jrie.jetbrains"
version = "0.2-dev"
version = "0.2"

repositories {
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") }
Expand Down
2 changes: 1 addition & 1 deletion kotlin-shell-kts/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ publishing(
publicationConfig(
project,
bintrayPublication,
listOf(tasks.jar.get(), sourcesJar, dokkaJar)
listOf(tasks.jar.get(), sourcesJar, dokkaJar, tasks.shadowJar.get())
)
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package eu.jrie.jetbrains.kotlinshell

import eu.jrie.jetbrains.kotlinshell.processes.execution.ExecutionContext
import eu.jrie.jetbrains.kotlinshell.processes.execution.ProcessExecutable
import eu.jrie.jetbrains.kotlinshell.processes.pipeline.Pipeline
import eu.jrie.jetbrains.kotlinshell.processes.process.Process
import eu.jrie.jetbrains.kotlinshell.processes.process.ProcessState
Expand Down Expand Up @@ -71,7 +73,8 @@ class KotlinShellScriptConfiguration : ScriptCompilationConfiguration (
companion object {
private val ESSENTIAL_KOTLIN_SHELL_CLASSES = arrayOf(
Shell::class,
Process::class, SystemProcess::class, ProcessState::class,
ExecutionContext::class,
Process::class, SystemProcess::class, ProcessState::class, ProcessExecutable::class,
Pipeline::class
)
private val ESSENTIAL_KOTLIN_SHELL_IMPORTS = arrayOf(
Expand All @@ -93,7 +96,19 @@ class KotlinShellScriptConfiguration : ScriptCompilationConfiguration (
"eu.jrie.jetbrains.kotlinshell.shell.readonly",

"kotlinx.coroutines.channels.Channel",
"kotlinx.coroutines.delay"
"kotlinx.coroutines.delay",
"kotlinx.coroutines.channels.consumeEach",
"kotlinx.coroutines.delay",

"java.io.OutputStream",
"java.io.InputStream",

"kotlinx.io.core.ByteReadPacket",
"kotlinx.io.core.readBytes",
"kotlinx.io.core.writeFully",
"kotlinx.io.core.readText",
"kotlinx.io.core.writeText",
"kotlinx.io.streams.writePacket"
)
}
}
Expand Down

0 comments on commit 782ad40

Please sign in to comment.