0.15.8-kotlin-2.1.0 #51
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user