David Liu

close and release publication plugin

... ... @@ -16,14 +16,12 @@ buildscript {
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.15'
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id "org.jetbrains.dokka" version "$dokka_version"
}
apply plugin: 'io.codearte.nexus-staging'
allprojects {
repositories {
... ... @@ -38,6 +36,12 @@ task clean(type: Delete) {
delete rootProject.buildDir
}
nexusStaging {
serverUrl = "https://s01.oss.sonatype.org/service/local/"
packageGroup = GROUP
stagingProfileId = "16b57cbf143daa"
}
ext {
androidSdk = [
compileVersion: 29,
... ...
... ... @@ -40,11 +40,11 @@ def getSnapshotRepositoryUrl() {
}
def getRepositoryUsername() {
return hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : ""
return hasProperty('nexusUsername') ? NEXUS_USERNAME : ""
}
def getRepositoryPassword() {
return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : ""
return hasProperty('nexusPassword') ? NEXUS_PASSWORD : ""
}
def configurePom(pom) {
... ...