Add plugable json serialization
This commit is contained in:
parent
6dfd71c1fe
commit
96bfd55219
@ -6,7 +6,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "ru.mipt.npm"
|
group = "ru.mipt.npm"
|
||||||
version = "0.6.1-dev-1.4.20-M1"
|
version = "0.6.2-dev-1.4.20-M1"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
|
@ -8,6 +8,17 @@ class SerializationTargets(
|
|||||||
val sourceSet: DependencySourceSet,
|
val sourceSet: DependencySourceSet,
|
||||||
val configuration: DependencyConfiguration
|
val configuration: DependencyConfiguration
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
fun Project.json(
|
||||||
|
version: String = KScienceVersions.serializationVersion
|
||||||
|
) {
|
||||||
|
useCommonDependency(
|
||||||
|
"org.jetbrains.kotlinx:kotlinx-serialization-json:$version",
|
||||||
|
dependencySourceSet = sourceSet,
|
||||||
|
dependencyConfiguration = configuration
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
fun Project.cbor(
|
fun Project.cbor(
|
||||||
version: String = KScienceVersions.serializationVersion
|
version: String = KScienceVersions.serializationVersion
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user