Commit 8e9ee0dd authored by 王韦's avatar 王韦

[new] 完善readme

parent 387f6ed4
#### 怎么上传maven
for Gradle version >= 2.1:
plugins {
id "com.whl.gradle-publish-plugin" version "0.1.16-SNAPSHOT"
}
for Gradle version < 2.1 or where dynamic configuration is required:
项目的根build.gradle
````
buildscript {
repositories {
maven {
......@@ -24,17 +15,16 @@ for Gradle version < 2.1 or where dynamic configuration is required:
apply plugin: "com.whl.gradle-publish-plugin"
Also see it in [Gradle plugins](https://plugins.gradle.org/plugin/com.whl.gradle-publish-plugin)
then, configuration in your build.gradle,such as:
````
module 的build.gradle
```
complete example:
group 'com.example'
version '1.0-SNAPSHOT'
apply plugin: "com.whl.gradle-publish-plugin"
group 'groupdId'
version 'version' // note :以-SNAPSHOT 可以同版本覆盖
gradlePublish {
gradlePublish {
sourceJarEnabled = true
javaDocEnabled = false
......@@ -52,8 +42,8 @@ gradlePublish {
password = "caihong520"
}
}
}
````
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