Commit 387f6ed4 authored by 王韦's avatar 王韦

[new] 完善readme

parent 4ac3cfd4
...@@ -28,45 +28,32 @@ Also see it in [Gradle plugins](https://plugins.gradle.org/plugin/com.whl.gradle ...@@ -28,45 +28,32 @@ Also see it in [Gradle plugins](https://plugins.gradle.org/plugin/com.whl.gradle
then, configuration in your build.gradle,such as: then, configuration in your build.gradle,such as:
simple example:
group 'com.example'
version '1.0-SNAPSHOT'
gradlePublish {
releaseRepository {
url = "http://your repository.com/nexus/content/repositories/releases"
userName = "wangwei"
password = "caihong520"
}
}
complete example: complete example:
group 'com.example' group 'com.example'
version '1.0-SNAPSHOT' version '1.0-SNAPSHOT'
gradlePublish {
gradlePublish {
sourceJarEnabled = true sourceJarEnabled = true
javaDocEnabled = true javaDocEnabled = false
signEnabled = false signEnabled = false
releaseRepository { releaseRepository {
url = "http://your repository.com/nexus/content/repositories/releases" url = "https://hub.zmcms.cn/repository/maven-public/"
userName = "your release account" userName = "wangwei"
password = "your release account" password = "caihong520"
} }
snapshotRepository { snapshotRepository {
url = "http://your repository.com/nexus/content/repositories/snapshots" url = "https://hub.zmcms.cn/repository/maven-snapshots/"
userName = "your snapshot account" userName = "wangwei"
password = "your snapshot account" password = "caihong520"
} }
}
}
last, execute `./gradlew publish` or `./gradlew :library:publish` task to publish your library to specified maven repository last, execute `./gradlew publish` or `./gradlew :library:publish` task to publish your library to specified maven repository
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment