0.7.6 #6
@ -6,7 +6,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "ru.mipt.npm"
|
group = "ru.mipt.npm"
|
||||||
version = "0.7.3-1.4.30-RC"
|
version = "0.7.4"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
|
@ -13,6 +13,7 @@ import kotlin.collections.component1
|
|||||||
import kotlin.collections.component2
|
import kotlin.collections.component2
|
||||||
|
|
||||||
class KSciencePublishingExtension(val project: Project) {
|
class KSciencePublishingExtension(val project: Project) {
|
||||||
|
var vcs: String? by project.extra
|
||||||
var githubOrg: String? by project.extra
|
var githubOrg: String? by project.extra
|
||||||
var githubProject: String? by project.extra
|
var githubProject: String? by project.extra
|
||||||
var spaceRepo: String? by project.extra
|
var spaceRepo: String? by project.extra
|
||||||
|
@ -18,10 +18,10 @@ internal fun Project.configurePublishing() {
|
|||||||
val vcs = findProperty("vcs") as? String
|
val vcs = findProperty("vcs") as? String
|
||||||
?: githubProject?.let { "https://github.com/$githubOrg/$it" }
|
?: githubProject?.let { "https://github.com/$githubOrg/$it" }
|
||||||
|
|
||||||
if (vcs == null) {
|
// if (vcs == null) {
|
||||||
project.logger.warn("[${project.name}] Missing deployment configuration. Skipping publish.")
|
// project.logger.warn("[${project.name}] Missing deployment configuration. Skipping publish.")
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
|
|
||||||
project.configure<PublishingExtension> {
|
project.configure<PublishingExtension> {
|
||||||
plugins.withId("org.jetbrains.kotlin.js") {
|
plugins.withId("org.jetbrains.kotlin.js") {
|
||||||
@ -62,7 +62,7 @@ internal fun Project.configurePublishing() {
|
|||||||
publication.pom {
|
publication.pom {
|
||||||
name.set(project.name)
|
name.set(project.name)
|
||||||
description.set(project.description)
|
description.set(project.description)
|
||||||
url.set(vcs)
|
vcs?.let{url.set(vcs)}
|
||||||
|
|
||||||
licenses {
|
licenses {
|
||||||
license {
|
license {
|
||||||
@ -80,9 +80,11 @@ internal fun Project.configurePublishing() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
scm {
|
vcs?.let {
|
||||||
url.set(vcs)
|
scm {
|
||||||
tag.set(project.version.toString())
|
url.set(vcs)
|
||||||
|
tag.set(project.version.toString())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user