0.8.0 #8
@ -140,24 +140,65 @@ publishing {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val spaceRepo: String = "https://maven.pkg.jetbrains.space/mipt-npm/p/mipt-npm/maven"
|
||||||
|
val spaceUser: String? by project
|
||||||
|
val spaceToken: String? by project
|
||||||
|
|
||||||
|
if (spaceUser != null && spaceToken != null) {
|
||||||
|
project.logger.info("Adding mipt-npm Space publishing to project [${project.name}]")
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "space"
|
||||||
|
url = uri(spaceRepo)
|
||||||
|
credentials {
|
||||||
|
username = spaceUser
|
||||||
|
password = spaceToken
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
val sonatypeUser: String? by project
|
val sonatypeUser: String? by project
|
||||||
val sonatypePassword: String? by project
|
val sonatypePassword: String? by project
|
||||||
|
|
||||||
|
// if (sonatypeUser != null && sonatypePassword != null) {
|
||||||
|
// nexusPublishing {
|
||||||
|
// repositories {
|
||||||
|
// sonatype {
|
||||||
|
// username.set(sonatypeUser)
|
||||||
|
// password.set(sonatypePassword)
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
if (sonatypeUser != null && sonatypePassword != null) {
|
if (sonatypeUser != null && sonatypePassword != null) {
|
||||||
nexusPublishing {
|
val sonatypeRepo: String = if (project.version.toString().contains("dev")) {
|
||||||
repositories {
|
"https://oss.sonatype.org/content/repositories/snapshots"
|
||||||
sonatype {
|
} else {
|
||||||
username.set(sonatypeUser)
|
"https://oss.sonatype.org/service/local/staging/deploy/maven2"
|
||||||
password.set(sonatypePassword)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (plugins.findPlugin("signing") == null) {
|
||||||
|
plugins.apply("signing")
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "sonatype"
|
||||||
|
url = uri(sonatypeRepo)
|
||||||
|
credentials {
|
||||||
|
username = sonatypeUser
|
||||||
|
password = sonatypePassword
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
signing {
|
signing {
|
||||||
useGpgCmd()
|
useGpgCmd()
|
||||||
sign(publications)
|
sign(publications)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ object KScienceVersions {
|
|||||||
const val kotlinVersion = "1.4.30"
|
const val kotlinVersion = "1.4.30"
|
||||||
const val kotlinxNodeVersion = "0.0.7"
|
const val kotlinxNodeVersion = "0.0.7"
|
||||||
const val coroutinesVersion = "1.4.2"
|
const val coroutinesVersion = "1.4.2"
|
||||||
const val serializationVersion = "1.1.0-RC"
|
const val serializationVersion = "1.1.0"
|
||||||
const val atomicVersion = "0.15.1"
|
const val atomicVersion = "0.15.1"
|
||||||
const val ktorVersion = "1.5.1"
|
const val ktorVersion = "1.5.1"
|
||||||
const val htmlVersion = "0.7.2"
|
const val htmlVersion = "0.7.2"
|
||||||
@ -17,7 +17,7 @@ object KScienceVersions {
|
|||||||
val JVM_TARGET = JavaVersion.VERSION_11
|
val JVM_TARGET = JavaVersion.VERSION_11
|
||||||
|
|
||||||
object Serialization{
|
object Serialization{
|
||||||
const val xmlVersion = "0.80.1"
|
const val xmlVersion = "0.81.0"
|
||||||
const val bsonVersion = "0.4.4"
|
const val bsonVersion = "0.4.4"
|
||||||
const val yamlKtVersion = "0.9.0"
|
const val yamlKtVersion = "0.9.0"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user