123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- apply plugin: 'com.android.library'
- //apply plugin: 'com.github.dcendents.android-maven'
- //apply plugin: 'com.jfrog.bintray'
- version = "1.1.8"
- android {
- compileSdkVersion COMPILE_SDK_VERSION as int
- buildToolsVersion BUILD_TOOLS_VERSION
- defaultConfig {
- minSdkVersion 14
- targetSdkVersion 25
- versionCode 1
- versionName "1.0"
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- lintOptions {
- abortOnError false
- }
- }
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- testImplementation 'junit:junit:4.13'
- implementation('com.android.support:appcompat-v7:28.0.0') { exclude module: 'support-v4' }
- }
- /*def siteUrl = 'https://github.com/CJT2325/CameraView' // 项目的主页
- def gitUrl = 'https://github.com/CJT2325/CameraView.git' // Git仓库的url
- group = "cjt.library.wheel" // Maven Group ID for the artifact,
- install {
- repositories.mavenInstaller {
- // This generates POM.xml with proper parameters
- pom {
- project {
- packaging 'aar'
- // Add your description here
- name 'A simple camera view' //项目的描述 你可以多写一点
- url siteUrl
- // Set your license
- licenses {
- license {
- name 'The Apache Software License, Version 2.0'
- url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
- }
- }
- developers {
- developer {
- id 'cjt' //填写的一些基本信息
- name 'JiaTong Chen'
- email '445263848@qq.com'
- }
- }
- scm {
- connection gitUrl
- developerConnection gitUrl
- url siteUrl
- }
- }
- }
- }
- }
- task sourcesJar(type: Jar) {
- from android.sourceSets.main.java.srcDirs
- classifier = 'sources'
- }
- task javadoc(type: Javadoc) {
- options.encoding = "UTF-8"
- source = android.sourceSets.main.java.srcDirs
- classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
- }
- task javadocJar(type: Jar, dependsOn: javadoc) {
- classifier = 'javadoc'
- from javadoc.destinationDir
- }
- artifacts {
- archives javadocJar
- archives sourcesJar
- }
- File localProps = project.rootProject.file('local.properties')
- if (localProps.exists()) {
- Properties properties = new Properties()
- properties.load(localProps.newDataInputStream())
- bintray {
- user = properties.getProperty("bintray.user")
- key = properties.getProperty("bintray.apikey")
- configurations = ['archives']
- pkg {
- repo = "maven"
- name = "cameraView"
- websiteUrl = siteUrl
- vcsUrl = gitUrl
- licenses = ["Apache-2.0"]
- publish = true
- }
- }
- }*/
|