correct dev repository.
This commit is contained in:
parent
91d0bd9d2e
commit
1a98759c2b
@ -19,7 +19,6 @@ open class ScientifikMPPlugin : Plugin<Project> {
|
||||
maven("https://dl.bintray.com/kotlin/kotlin-eap")
|
||||
maven("https://kotlin.bintray.com/kotlinx")
|
||||
maven("https://dl.bintray.com/mipt-npm/dev")
|
||||
maven("https://dl.bintray.com/mipt-npm/scientifik")
|
||||
}
|
||||
|
||||
project.configure<KotlinMultiplatformExtension> {
|
||||
@ -31,14 +30,8 @@ open class ScientifikMPPlugin : Plugin<Project> {
|
||||
}
|
||||
}
|
||||
|
||||
js {
|
||||
compilations.all {
|
||||
kotlinOptions {
|
||||
sourceMap = true
|
||||
sourceMapEmbedSources = "always"
|
||||
moduleKind = "umd"
|
||||
}
|
||||
}
|
||||
js{
|
||||
browser{}
|
||||
}
|
||||
|
||||
if (extension.native) {
|
||||
|
@ -28,7 +28,7 @@ private val Project.bintrayRepo: String?
|
||||
?: (findProperty("bintrayRepo") as? String)
|
||||
|
||||
private val Project.githubProject: String?
|
||||
get() = extensions.findByType<ScientifikExtension>()?.vcs
|
||||
get() = extensions.findByType<ScientifikExtension>()?.githubProject
|
||||
?: parent?.githubProject
|
||||
?: (findProperty("githubProject") as? String)
|
||||
|
||||
@ -51,7 +51,12 @@ open class ScientifikPublishPlugin : Plugin<Project> {
|
||||
project.plugins.apply("org.jetbrains.dokka")
|
||||
}
|
||||
|
||||
val bintrayRepo = project.bintrayRepo
|
||||
val bintrayRepo = if (project.version.toString().contains("dev")) {
|
||||
"dev"
|
||||
} else {
|
||||
project.bintrayRepo
|
||||
}
|
||||
|
||||
val vcs = project.vcs
|
||||
|
||||
if (vcs == null) {
|
||||
@ -257,7 +262,7 @@ open class ScientifikPublishPlugin : Plugin<Project> {
|
||||
// this is a problem of this plugin
|
||||
pkg.apply {
|
||||
userOrg = "mipt-npm"
|
||||
repo = if (project.version.toString().contains("dev")) "dev" else bintrayRepo
|
||||
repo = bintrayRepo
|
||||
name = project.name
|
||||
issueTrackerUrl = "$vcs/issues"
|
||||
setLicenses("Apache-2.0")
|
||||
|
Loading…
Reference in New Issue
Block a user