Coder Social home page Coder Social logo

bintray's Introduction

bintray

处理上传bintray的gradle文件

根目录build.gradle中添加

    dependencies {
        ...
        // 下面两行是新添加的
        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
    }
    
 allprojects {
    ...
    //解决上传jCenter乱码问题
    tasks.withType(Javadoc){
        options{
            encoding "UTF-8"
            charSet 'UTF-8'
            links "http://docs.oracle.com/javase/7/docs/api"
        }
    }
}   
    

local.properties中添加

bintray.user=user
bintray.apikey=apikey

lib中的build.gradle添加

ext {
    libraryPackaging = 'aar'                                            //上传aar形式的打包文件

    // jcenter
    bintrayRepo = "tgcity"                                             // 你上传的位于bintray中的Repository名称,如果没有创建会有一个叫maven的
    name = 'log'                                                // 必须和library module的名字相同
    libraryDesc = 'A log Library'
    publishedGroupId = 'com.tgcity.utils'                // 填写groupId, 一般是包名,比如:com.android.support
    versionName = '1.0.0'                                               // 版本号,比如:22.2.1
    websiteUrl = 'https://github.com/tgcityPlum/Comprehensive'              // 可以填写github上的库地址.
    issueTrackerUrl = 'https://github.com/tgcityPlum/Comprehensive/issues'  // 可以填写github库的issue地址.
    vcsUrl = 'https://github.com/tgcityPlum/Comprehensive.git'              // 可以填写github上库的地址.
    licenseName = "Apache-2.0"
    libraryVersionDesc = 'version descriotion'

}

apply from: 'https://github.com/tgcityPlum/bintray/blob/master/jcenter.gradle'

使用方法

windows环境在terminal中输入 gradlew jcenter 即可

bintray's People

Contributors

tgcityplum avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.