Update build version
This commit is contained in:
parent
0fc2198832
commit
f5d32ba511
@ -6,7 +6,7 @@ plugins {
|
|||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
group = "space.kscience"
|
group = "space.kscience"
|
||||||
version = "0.6.0-dev-7"
|
version = "0.6.0-dev-8"
|
||||||
|
|
||||||
tasks.withType<KotlinCompile>{
|
tasks.withType<KotlinCompile>{
|
||||||
kotlinOptions{
|
kotlinOptions{
|
||||||
|
@ -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 =
|
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)
|
@Type(IO_FORMAT_TYPE)
|
||||||
|
@ -53,13 +53,16 @@ public class IOPlugin(meta: Meta) : AbstractPlugin(meta) {
|
|||||||
override fun content(target: String): Map<Name, Any> = when (target) {
|
override fun content(target: String): Map<Name, Any> = when (target) {
|
||||||
META_FORMAT_TYPE -> defaultMetaFormats.toMap()
|
META_FORMAT_TYPE -> defaultMetaFormats.toMap()
|
||||||
ENVELOPE_FORMAT_TYPE -> defaultEnvelopeFormats.toMap()
|
ENVELOPE_FORMAT_TYPE -> defaultEnvelopeFormats.toMap()
|
||||||
|
IO_FORMAT_TYPE -> content(META_FORMAT_TYPE) + content(ENVELOPE_FORMAT_TYPE)
|
||||||
else -> super.content(target)
|
else -> super.content(target)
|
||||||
}
|
}
|
||||||
|
|
||||||
public companion object : PluginFactory<IOPlugin> {
|
public companion object : PluginFactory<IOPlugin> {
|
||||||
public val defaultMetaFormats: List<MetaFormatFactory> = listOf(JsonMetaFormat)
|
public val defaultMetaFormats: List<MetaFormatFactory> = listOf(JsonMetaFormat)
|
||||||
public val defaultEnvelopeFormats: List<EnvelopeFormatFactory> =
|
public val defaultEnvelopeFormats: List<EnvelopeFormatFactory> = listOf(
|
||||||
listOf(TaggedEnvelopeFormat, TaglessEnvelopeFormat)
|
TaggedEnvelopeFormat,
|
||||||
|
TaglessEnvelopeFormat
|
||||||
|
)
|
||||||
|
|
||||||
override val tag: PluginTag = PluginTag("io", group = PluginTag.DATAFORGE_GROUP)
|
override val tag: PluginTag = PluginTag("io", group = PluginTag.DATAFORGE_GROUP)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user