liumingming

删除私密文件

1 -apply plugin: 'com.jfrog.bintray'  
2 -  
3 -version = android.defaultConfig.versionName  
4 -  
5 -if (project.hasProperty("android")) { // Android libraries  
6 - task sourcesJar(type: Jar) {  
7 - classifier = 'sources'  
8 - from android.sourceSets.main.java.srcDirs  
9 - }  
10 -  
11 -// task javadoc(type: Javadoc) {  
12 -// source = android.sourceSets.main.java.srcDirs  
13 -// classpath += project.files(android.getBootClasspath().join(File.pathSeparator))  
14 -// }  
15 -} else { // Java libraries  
16 - task sourcesJar(type: Jar, dependsOn: classes) {  
17 - classifier = 'sources'  
18 - from sourceSets.main.allSource  
19 - }  
20 -}  
21 -  
22 -//task javadocJar(type: Jar, dependsOn: javadoc) {  
23 -// classifier = 'javadoc'  
24 -// from javadoc.destinationDir  
25 -//}  
26 -  
27 -artifacts {  
28 -// archives javadocJar  
29 - archives sourcesJar  
30 -}  
31 -  
32 -// Bintray  
33 -//Properties properties = new Properties()  
34 -//properties.load(project.rootProject.file('local.properties').newDataInputStream())  
35 -  
36 -bintray {  
37 -// user = properties.getProperty("bintray.user")  
38 -// key = properties.getProperty("bintray.apikey")  
39 -  
40 - user = rootProject.ext.user  
41 - key = rootProject.ext.apikey  
42 -  
43 -// user = 'hh-medic'  
44 -// key = 'c3a4fa32ed2a3cd54d736d04307bb86c12c11ff8'  
45 -  
46 - configurations = ['archives']  
47 - pkg {  
48 - repo = rootProject.ext.repo  
49 - name = rootProject.ext.name  
50 - if (rootProject.ext.isCompany) {  
51 - userOrg = "hh-medic"  
52 - }  
53 - desc = rootProject.ext.name  
54 - websiteUrl = rootProject.ext.url  
55 - vcsUrl = rootProject.ext.vcsUrl  
56 - licenses = ["Apache-2.0"]  
57 - publish = true  
58 - }  
59 -}  
1 -apply plugin: 'com.github.dcendents.android-maven'  
2 -  
3 -group = rootProject.ext.groupId // Maven Group ID for the artifact  
4 -  
5 -install {  
6 - repositories.mavenInstaller {  
7 - // This generates POM.xml with proper parameters  
8 - pom {  
9 - project {  
10 - packaging 'aar'  
11 - groupId rootProject.ext.groupId  
12 - artifactId rootProject.ext.artifactId  
13 -  
14 - // Add your description here  
15 - name rootProject.ext.name  
16 - description rootProject.ext.description  
17 - url rootProject.ext.url  
18 -  
19 - // Set your license  
20 - licenses {  
21 - license {  
22 - name rootProject.ext.license_name  
23 - url rootProject.ext.license_url  
24 - }  
25 - }  
26 - developers {  
27 - developer {  
28 - id rootProject.ext.developer_id  
29 - name rootProject.ext.developer_name  
30 - email rootProject.ext.email  
31 - }  
32 - }  
33 - scm {  
34 - connection rootProject.ext.url  
35 - developerConnection rootProject.ext.url  
36 - url rootProject.ext.url  
37 -  
38 - }  
39 - }  
40 - }  
41 - }  
42 -}  
1 -ext {  
2 -  
3 - isCompany = false//控制是发布到企业账号还是个人账号  
4 -  
5 - user = isCompany ? "hhmedic" : "hhclient"  
6 - apikey = isCompany ? "6501341d8094b0482a82e3e6eb3b205d2925b194" : "89c96bff0896bb09eb50b53affb8616e18aece15"  
7 -  
8 - url = "https://www.hh-medic.com" //整体用到的URL  
9 - groupId = "com.hhmedic.android.sdk" //SDK引用包名  
10 - artifactId = "base_small" //SDK引用ID  
11 - name = "base_small" //描述  
12 - description = "base_small" //描述  
13 -  
14 - license_name = "The Apache Software License, Version 2.0" //协议名称  
15 - license_url = "http://www.apache.org/licenses/LICENSE-2.0.txt" //协议地址  
16 -  
17 - developer_id = isCompany ? "hhmedic" : "hhclient" //开发者账号  
18 - developer_name = "hhmedic" //开发者昵称  
19 - email = "liumingming@hh-medic.com" //开发者邮箱  
20 -  
21 - repo = "maven" //bintray上定义的Repositories  
22 -  
23 - vcsUrl = "http://code.hh-medic.com/dev-client/hhsdk.android.base.git"  
24 -}