正在显示
2 个修改的文件
包含
10 行增加
和
6 行删除
| @@ -16,14 +16,12 @@ buildscript { | @@ -16,14 +16,12 @@ buildscript { | ||
| 16 | classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version" | 16 | classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version" |
| 17 | classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version" | 17 | classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version" |
| 18 | classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.15' | 18 | classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.15' |
| 19 | + classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0" | ||
| 19 | // NOTE: Do not place your application dependencies here; they belong | 20 | // NOTE: Do not place your application dependencies here; they belong |
| 20 | // in the individual module build.gradle files | 21 | // in the individual module build.gradle files |
| 21 | } | 22 | } |
| 22 | } | 23 | } |
| 23 | - | ||
| 24 | -plugins { | ||
| 25 | - id "org.jetbrains.dokka" version "$dokka_version" | ||
| 26 | -} | 24 | +apply plugin: 'io.codearte.nexus-staging' |
| 27 | 25 | ||
| 28 | allprojects { | 26 | allprojects { |
| 29 | repositories { | 27 | repositories { |
| @@ -38,6 +36,12 @@ task clean(type: Delete) { | @@ -38,6 +36,12 @@ task clean(type: Delete) { | ||
| 38 | delete rootProject.buildDir | 36 | delete rootProject.buildDir |
| 39 | } | 37 | } |
| 40 | 38 | ||
| 39 | +nexusStaging { | ||
| 40 | + serverUrl = "https://s01.oss.sonatype.org/service/local/" | ||
| 41 | + packageGroup = GROUP | ||
| 42 | + stagingProfileId = "16b57cbf143daa" | ||
| 43 | +} | ||
| 44 | + | ||
| 41 | ext { | 45 | ext { |
| 42 | androidSdk = [ | 46 | androidSdk = [ |
| 43 | compileVersion: 29, | 47 | compileVersion: 29, |
| @@ -40,11 +40,11 @@ def getSnapshotRepositoryUrl() { | @@ -40,11 +40,11 @@ def getSnapshotRepositoryUrl() { | ||
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | def getRepositoryUsername() { | 42 | def getRepositoryUsername() { |
| 43 | - return hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : "" | 43 | + return hasProperty('nexusUsername') ? NEXUS_USERNAME : "" |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | def getRepositoryPassword() { | 46 | def getRepositoryPassword() { |
| 47 | - return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : "" | 47 | + return hasProperty('nexusPassword') ? NEXUS_PASSWORD : "" |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | def configurePom(pom) { | 50 | def configurePom(pom) { |
-
请 注册 或 登录 后发表评论