From 33b6de9f0eaec72b63707eb5785acebc35c7aed2 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Tue, 12 Sep 2023 21:19:05 +0300 Subject: [PATCH] Change plugin deploy logic --- build.gradle.kts | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index d18454a..4dde05e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -117,7 +117,7 @@ val emptySourcesJar by tasks.creating(Jar::class) { } 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 publications { @@ -151,10 +151,10 @@ publishing { developers { developer { - id.set("MIPT-NPM") - name.set("MIPT nuclear physics methods laboratory") - organization.set("MIPT") - organizationUrl.set("https://npm.mipt.ru") + id.set("SPC") + name.set("Scientific Programming Centre") + organization.set("SPC") + organizationUrl.set("https://sciprog.center/") } } @@ -166,20 +166,18 @@ publishing { } } - val spaceRepo = "https://maven.pkg.jetbrains.space/spc/p/sci/maven" - val spaceUser: String? = findProperty("publishing.space.user") as? String - val spaceToken: String? = findProperty("publishing.space.token") as? String - - if (spaceUser != null && spaceToken != null) { - project.logger.info("Adding mipt-npm Space publishing to project [${project.name}]") + val spaceRepo = "https://maven.sciprog.center/kscience" + val spcUser: String? = findProperty("publishing.spc.user") as? String + val spcToken: String? = findProperty("publishing.spc.token") as? String + if (spcUser != null && spcToken != null) { repositories.maven { - name = "space" + name = "spc" url = uri(spaceRepo) credentials { - username = spaceUser - password = spaceToken + username = spcUser + password = spcToken } } }