Fix JS distribution name

This commit is contained in:
Alexander Nozik 2020-03-16 20:56:23 +03:00
parent bf3252dbd6
commit b659d0312a
2 changed files with 9 additions and 4 deletions

View File

@ -35,6 +35,6 @@ val Project.jsDistDirectory: File
).joinToString("-") ).joinToString("-")
return buildDir.resolve( return buildDir.resolve(
"distributions/$distributionName}" "distributions/$distributionName"
) )
} }

View File

@ -5,6 +5,8 @@ import kotlinx.atomicfu.plugin.gradle.sourceSets
import org.gradle.api.Project import org.gradle.api.Project
import org.gradle.kotlin.dsl.findByType import org.gradle.kotlin.dsl.findByType
import org.gradle.kotlin.dsl.invoke 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 import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
enum class DependencyConfiguration { enum class DependencyConfiguration {
@ -106,10 +108,13 @@ class SerializationTargets(
fun Project.xml( fun Project.xml(
version: String = Scientifik.Serialization.xmlVersion version: String = Scientifik.Serialization.xmlVersion
) { ) {
repositories {
maven("https://dl.bintray.com/pdvrieze/maven")
}
useDependency( useDependency(
"common" to "net.devrieze:xmlutil:$version", "common" to "net.devrieze:xmlutil-serialization:$version",
"jvm" to "net.devrieze:xmlutil:$version", "jvm" to "net.devrieze:xmlutil-serialization:$version",
"js" to "net.devrieze:xmlutil:$version", "js" to "net.devrieze:xmlutil-serialization:$version",
dependencySourceSet = sourceSet, dependencySourceSet = sourceSet,
dependencyConfiguration = configuration dependencyConfiguration = configuration
) )