From b659d0312a7850df8beb222bf85c4207c57702a0 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Mon, 16 Mar 2020 20:56:23 +0300 Subject: [PATCH] Fix JS distribution name --- src/main/kotlin/scientifik/common.kt | 2 +- src/main/kotlin/scientifik/extensions.kt | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/scientifik/common.kt b/src/main/kotlin/scientifik/common.kt index 3644e12..0f7738e 100644 --- a/src/main/kotlin/scientifik/common.kt +++ b/src/main/kotlin/scientifik/common.kt @@ -35,6 +35,6 @@ val Project.jsDistDirectory: File ).joinToString("-") return buildDir.resolve( - "distributions/$distributionName}" + "distributions/$distributionName" ) } \ No newline at end of file diff --git a/src/main/kotlin/scientifik/extensions.kt b/src/main/kotlin/scientifik/extensions.kt index f32e2dc..df52b26 100644 --- a/src/main/kotlin/scientifik/extensions.kt +++ b/src/main/kotlin/scientifik/extensions.kt @@ -5,6 +5,8 @@ import kotlinx.atomicfu.plugin.gradle.sourceSets import org.gradle.api.Project import org.gradle.kotlin.dsl.findByType import org.gradle.kotlin.dsl.invoke +import org.gradle.kotlin.dsl.maven +import org.gradle.kotlin.dsl.repositories import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension enum class DependencyConfiguration { @@ -106,10 +108,13 @@ class SerializationTargets( fun Project.xml( version: String = Scientifik.Serialization.xmlVersion ) { + repositories { + maven("https://dl.bintray.com/pdvrieze/maven") + } useDependency( - "common" to "net.devrieze:xmlutil:$version", - "jvm" to "net.devrieze:xmlutil:$version", - "js" to "net.devrieze:xmlutil:$version", + "common" to "net.devrieze:xmlutil-serialization:$version", + "jvm" to "net.devrieze:xmlutil-serialization:$version", + "js" to "net.devrieze:xmlutil-serialization:$version", dependencySourceSet = sourceSet, dependencyConfiguration = configuration )