Update build version

This commit is contained in:
Alexander Nozik 2022-05-17 12:24:15 +03:00
parent 0fc2198832
commit f5d32ba511
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357
3 changed files with 7 additions and 4 deletions

View File

@ -6,7 +6,7 @@ plugins {
allprojects {
group = "space.kscience"
version = "0.6.0-dev-7"
version = "0.6.0-dev-8"
tasks.withType<KotlinCompile>{
kotlinOptions{

View File

@ -44,7 +44,7 @@ public fun <T : Any> Binary.readWith(format: IOReader<T>): T = read {
}
public fun <T : Any> Output.writeObject(format: IOWriter<T>, obj: T): Unit =
format.run { writeObject(this@writeObject, obj) }
format.writeObject(this@writeObject, obj)
@Type(IO_FORMAT_TYPE)

View File

@ -53,13 +53,16 @@ public class IOPlugin(meta: Meta) : AbstractPlugin(meta) {
override fun content(target: String): Map<Name, Any> = when (target) {
META_FORMAT_TYPE -> defaultMetaFormats.toMap()
ENVELOPE_FORMAT_TYPE -> defaultEnvelopeFormats.toMap()
IO_FORMAT_TYPE -> content(META_FORMAT_TYPE) + content(ENVELOPE_FORMAT_TYPE)
else -> super.content(target)
}
public companion object : PluginFactory<IOPlugin> {
public val defaultMetaFormats: List<MetaFormatFactory> = listOf(JsonMetaFormat)
public val defaultEnvelopeFormats: List<EnvelopeFormatFactory> =
listOf(TaggedEnvelopeFormat, TaglessEnvelopeFormat)
public val defaultEnvelopeFormats: List<EnvelopeFormatFactory> = listOf(
TaggedEnvelopeFormat,
TaglessEnvelopeFormat
)
override val tag: PluginTag = PluginTag("io", group = PluginTag.DATAFORGE_GROUP)