Change plugin deploy logic

This commit is contained in:
Alexander Nozik 2023-09-12 21:19:05 +03:00
parent 2f5e053aea
commit 33b6de9f0e

View File

@ -117,7 +117,7 @@ val emptySourcesJar by tasks.creating(Jar::class) {
} }
publishing { publishing {
val vcs = "https://github.com/mipt-npm/gradle-tools" val vcs = "https://github.com/SciProgCentre/gradle-tools"
// Process each publication we have in this project // Process each publication we have in this project
publications { publications {
@ -151,10 +151,10 @@ publishing {
developers { developers {
developer { developer {
id.set("MIPT-NPM") id.set("SPC")
name.set("MIPT nuclear physics methods laboratory") name.set("Scientific Programming Centre")
organization.set("MIPT") organization.set("SPC")
organizationUrl.set("https://npm.mipt.ru") organizationUrl.set("https://sciprog.center/")
} }
} }
@ -166,20 +166,18 @@ publishing {
} }
} }
val spaceRepo = "https://maven.pkg.jetbrains.space/spc/p/sci/maven" val spaceRepo = "https://maven.sciprog.center/kscience"
val spaceUser: String? = findProperty("publishing.space.user") as? String val spcUser: String? = findProperty("publishing.spc.user") as? String
val spaceToken: String? = findProperty("publishing.space.token") as? String val spcToken: String? = findProperty("publishing.spc.token") as? String
if (spaceUser != null && spaceToken != null) {
project.logger.info("Adding mipt-npm Space publishing to project [${project.name}]")
if (spcUser != null && spcToken != null) {
repositories.maven { repositories.maven {
name = "space" name = "spc"
url = uri(spaceRepo) url = uri(spaceRepo)
credentials { credentials {
username = spaceUser username = spcUser
password = spaceToken password = spcToken
} }
} }
} }