简单使用novoda上传jcenter
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle
library
.gitignore
README.md
build.gradle
gradle.properties
local.properties

README.md

novoda-push

使用novoda上传项目到bintray并打包到jcenter

目录结构

.
├── README.md
├── build.gradle            // root build.gradle
├── gradle
│   └── push.gradle         // new file
├── gradle.properties       // root properties
├── library
│   ├── build.gradle        // module build.gradle
│   └── gradle.properties   // module properties
└── local.properties        // local file for configuring your key

使用说明

配置

  • 根据目录结构添加或更新你的文件

上传

  • 直接双击fuck命令(位于Gradle projectspublishing包下)
  • 或者命令行执行./gradlew fuck

注意事项

使用kotlin编写的项目可能会遇到.kt文件无法生成javadoc情况,可以在root build.gradle文件下添加

tasks.getByPath(":your module:releaseAndroidJavadocs").enabled = false

同样javadoc问题

tasks.withType(Javadoc) {
    options.addStringOption('Xdoclint:none', '-quiet')
    options.addStringOption('encoding', 'UTF-8')
    options.addStringOption('charSet', 'UTF-8')
}

快捷apply

apply from: 'https://raw.githubusercontent.com/izyhang/novoda-push/master/gradle/push.gradle'