apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'//添加github项目

android {

    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
       // applicationId "com.android.jnet"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
 	javaCompileOptions {
            annotationProcessorOptions {
                arguments = [ moduleName : project.getName() ]
            }
        }
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}


allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.github.limedroid:XDroidMvp:v1.5.0'
    compile 'com.jakewharton:butterknife:8.5.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
    compile 'com.lzy.net:okgo:2.0.0'        //可以单独使用，不需要依赖下方的扩展包
    compile 'com.lzy.net:okrx:0.1.0'        //RxJava扩展支持，根据需要添加

 //alibaba Arouter
    annotationProcessor 'com.alibaba:arouter-compiler:1.0.1'
    compile 'com.alibaba:arouter-api:1.0.2'


}

version="1.0.0"
ext {
    bintrayRepo = 'maven'
    bintrayName = 'Jnet'

    publishedGroupId = 'com.yzr'
    libraryName = 'JnetLibrary'
    artifact = 'Jnet'

    libraryDescription = 'A andbase on Android'

    siteUrl = 'https://github.com/yuzhongrong/Jnet'
    gitUrl = 'https://github.com/yuzhongrong/Jnet.git'

    libraryVersion = '1.0.0'

    developerId = 'yzr'
    developerName = 'yzr'
    developerEmail = '956942189@qq.com'

    licenseName = 'The Apache Software License, Version 1.0.0'
    licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
    allLicenses = ["Apache-2.0"]



}




apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'

javadoc {
    options{
        encoding "UTF-8"
        charSet 'UTF-8'
        author true
        version true
        links "http://docs.oracle.com/javase/7/docs/api"
    }
}

