feat: 自动化发布到Maven

This commit is contained in:
yangxisong 2025-12-12 11:55:34 +08:00
parent 5f109c09de
commit 59bca84183
3 changed files with 9 additions and 9 deletions

View File

@ -7,25 +7,25 @@ Room 数据持久化Worker管理上传任务初次上传+重试共5次
| release | https://track.23544.com | 否 | | release | https://track.23544.com | 否 |
### 使用 ### 使用
#### 1.0.5 #### 1.0.6
```kotlin ```kotlin
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
maven { maven {
url = uri("http://192.168.2.14:8081/repository/maven-releases/") url = uri("https://nexus.23544.com/repository/maven-releases/")
isAllowInsecureProtocol = true isAllowInsecureProtocol = true
credentials { credentials {
username = "admin" username = "admin"
password = "qwer1234.." password = "j7EgYb2ejMCt5aYw"
} }
} }
maven { maven {
url = uri("http://192.168.2.14:8081/repository/maven-snapshots/") url = uri("https://nexus.23544.com/repository/maven-snapshots/")
isAllowInsecureProtocol = true isAllowInsecureProtocol = true
credentials { credentials {
username = "admin" username = "admin"
password = "qwer1234.." password = "j7EgYb2ejMCt5aYw"
} }
} }
} }

View File

@ -21,9 +21,9 @@ kotlin.code.style=official
# resources declared in the library itself and none from the library's dependencies, # resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library # thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true android.nonTransitiveRClass=true
mavenReleaseRepoUrl=http://192.168.2.14:8081/repository/maven-releases/ mavenReleaseRepoUrl=https://nexus.23544.com/repository/maven-releases/
mavenDebugRepoUrl=http://192.168.2.14:8081/repository/maven-snapshots/ mavenDebugRepoUrl=http://nexus.23544.com/repository/maven-snapshots/
mavenUsername=admin mavenUsername=admin
mavenPassword=qwer1234.. mavenPassword=j7EgYb2ejMCt5aYw
baseReleaseUrl=https://track.23544.com baseReleaseUrl=https://track.23544.com
baseDebugUrl=http://192.168.2.7:18828 baseDebugUrl=http://192.168.2.7:18828

View File

@ -7,7 +7,7 @@ plugins {
id("maven-publish") id("maven-publish")
} }
group = "com.yuanxuan" group = "com.yuanxuan"
version = "1.0.5" version = "1.0.6"
val baseReleaseUrl: Provider<String> = providers.gradleProperty("baseReleaseUrl") val baseReleaseUrl: Provider<String> = providers.gradleProperty("baseReleaseUrl")