From fcba27cd7218b0fdf5056a1b9715638a54b5dd4e Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Sun, 5 Jul 2020 15:22:40 +0300 Subject: [PATCH] Tools to 0.5.1 --- build.gradle.kts | 4 ++-- .../kotlin/hep/dataforge/io/yaml/FrontMatterEnvelopeFormat.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index ac454902..c3f71631 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,5 @@ - plugins { - val toolsVersion = "0.5.0" + val toolsVersion = "0.5.1" id("scientifik.mpp") version toolsVersion apply false id("scientifik.jvm") version toolsVersion apply false id("scientifik.publish") version toolsVersion apply false @@ -11,6 +10,7 @@ val dataforgeVersion by extra("0.1.8") val bintrayRepo by extra("dataforge") val githubProject by extra("dataforge-core") +val spaceRepo by extra("https://maven.jetbrains.space/mipt-npm/p/df/maven") allprojects { group = "hep.dataforge" diff --git a/dataforge-io/dataforge-io-yaml/src/main/kotlin/hep/dataforge/io/yaml/FrontMatterEnvelopeFormat.kt b/dataforge-io/dataforge-io-yaml/src/main/kotlin/hep/dataforge/io/yaml/FrontMatterEnvelopeFormat.kt index 0fffdb7e..b6f4cb50 100644 --- a/dataforge-io/dataforge-io-yaml/src/main/kotlin/hep/dataforge/io/yaml/FrontMatterEnvelopeFormat.kt +++ b/dataforge-io/dataforge-io-yaml/src/main/kotlin/hep/dataforge/io/yaml/FrontMatterEnvelopeFormat.kt @@ -18,7 +18,7 @@ class FrontMatterEnvelopeFormat( ) : EnvelopeFormat { override fun Input.readPartial(): PartialEnvelope { - var line: String = "" + var line = "" var offset = 0u do { line = readUtf8Line() //?: error("Input does not contain front matter separator") @@ -45,7 +45,7 @@ class FrontMatterEnvelopeFormat( } override fun Input.readObject(): Envelope { - var line: String = "" + var line = "" do { line = readUtf8Line() //?: error("Input does not contain front matter separator") } while (!line.startsWith(SEPARATOR))