2022-09-13 13:33:36 -04:00
|
|
|
plugins {
|
|
|
|
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
|
|
|
|
}
|
|
|
|
|
2022-11-30 12:03:01 -05:00
|
|
|
// library version is defined in gradle.properties
|
|
|
|
val libraryVersion: String by project
|
|
|
|
|
2022-10-24 10:19:56 -04:00
|
|
|
// These properties are required here so that the nexus publish-plugin
|
|
|
|
// finds a staging profile with the correct group (group is otherwise set as "")
|
|
|
|
// and knows whether to publish to a SNAPSHOT repository or not
|
|
|
|
// https://github.com/gradle-nexus/publish-plugin#applying-the-plugin
|
|
|
|
group = "org.bitcoindevkit"
|
2022-11-30 12:03:01 -05:00
|
|
|
version = libraryVersion
|
2022-10-24 10:19:56 -04:00
|
|
|
|
2022-09-13 13:33:36 -04:00
|
|
|
nexusPublishing {
|
|
|
|
repositories {
|
|
|
|
create("sonatype") {
|
|
|
|
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
|
|
|
|
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
|
|
|
|
|
|
|
|
val ossrhUsername: String? by project
|
|
|
|
val ossrhPassword: String? by project
|
|
|
|
username.set(ossrhUsername)
|
|
|
|
password.set(ossrhPassword)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|