





-------
 #### 怎么上传maven 
 
项目的根build.gradle
````
        buildscript {
          repositories {
            maven {
              url "https://plugins.gradle.org/m2/"
            }
          }
          dependencies {
            classpath "com.whl:gradle-publish-plugin:0.1.16-SNAPSHOT"
          }
        }

        apply plugin: "com.whl.gradle-publish-plugin"

````
module 的build.gradle
```
complete example:
        apply plugin: "com.whl.gradle-publish-plugin"
        group 'groupdId'
        version 'version' // note :以-SNAPSHOT 可以同版本覆盖 

      
        gradlePublish {
        
            sourceJarEnabled = true
            javaDocEnabled = false
            signEnabled = false
        
            releaseRepository {
                url = "https://hub.zmcms.cn/repository/maven-public/"
                userName = "wanglei1"
                password = "woshiwanglei123"
            }
        
            snapshotRepository {
                url = "https://hub.zmcms.cn/repository/maven-snapshots/"
                userName = "wanglei1"
                password = "woshiwanglei123"
            }
        
        }
````


last, execute `./gradlew publish` or `./gradlew :library:publish` task to publish your library to specified maven repository


 

-----

#### 常用组件和工具库
  [TopBar](https://git.zmcms.cn/wangwei/widget/blob/master/widgetlib/TopBarReadMe.MD)
  
  [Tip(筹划中)]()
  
  [Pop(筹划中)]()
  
  