Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b8f1118

Browse files
committedApr 26, 2017
edit gradle
1 parent 6eae112 commit b8f1118

File tree

3 files changed

+35
-3
lines changed

3 files changed

+35
-3
lines changed
 

‎app/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ android {
44
compileSdkVersion 25
55
buildToolsVersion '25.0.2'
66
defaultConfig {
7-
applicationId "com.example.d.xrecyclerviewf"
7+
applicationId "com.d.xrecyclerviewf"
88
minSdkVersion 10
99
targetSdkVersion 25
1010
versionCode 1
@@ -17,6 +17,9 @@ android {
1717
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
1818
}
1919
}
20+
lintOptions {
21+
abortOnError false
22+
}
2023
}
2124

2225
dependencies {
@@ -28,6 +31,5 @@ dependencies {
2831
testCompile 'junit:junit:4.12'
2932
compile 'com.android.support:appcompat-v7:23.4.0'
3033
compile 'com.android.support.constraint:constraint-layout:1.0.2'
31-
compile 'com.android.support:recyclerview-v7:23.4.0'
3234
compile 'com.android.support:design:23.4.0'
3335
}

‎build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ buildscript {
66
}
77
dependencies {
88
classpath 'com.android.tools.build:gradle:2.1.3'
9+
// bintray step1:add this classpath
10+
classpath 'com.novoda:bintray-release:0.4.0'
911

1012
// NOTE: Do not place your application dependencies here; they belong
1113
// in the individual module build.gradle files
@@ -16,6 +18,13 @@ allprojects {
1618
repositories {
1719
jcenter()
1820
}
21+
tasks.withType(Javadoc) {
22+
options {
23+
encoding "UTF-8"
24+
charSet 'UTF-8'
25+
links "http://docs.oracle.com/javase/7/docs/api"
26+
}
27+
}
1928
}
2029

2130
task clean(type: Delete) {

‎xrv/build.gradle

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
apply plugin: 'com.android.library'
2+
// bintray step2:add this apply
3+
apply plugin: 'com.novoda.bintray-release'
24

35
android {
46
compileSdkVersion 25
@@ -19,6 +21,9 @@ android {
1921
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2022
}
2123
}
24+
lintOptions {
25+
abortOnError false
26+
}
2227
}
2328

2429
dependencies {
@@ -27,8 +32,24 @@ dependencies {
2732
exclude group: 'com.android.support', module: 'support-annotations'
2833
})
2934
testCompile 'junit:junit:4.12'
30-
compile 'com.android.support:appcompat-v7:23.4.0'
3135
compile 'com.android.support:recyclerview-v7:23.4.0'
3236
compile 'com.android.support:design:23.4.0'
3337
compile 'com.nineoldandroids:library:2.4.0'
3438
}
39+
40+
// bintray step3:add publish info
41+
publish {
42+
userOrg = 'dsiner' //bintray注册的用户名
43+
groupId = 'com.dsiner' //compile引用时的第1部分groupId
44+
artifactId = 'xrv' //compile引用时的第2部分项目名
45+
publishVersion = '1.0.0' //compile引用时的第3部分版本号
46+
desc = 'commen recyclerview for android' //描述,不重要
47+
website = 'https://github.com/Dsiner/xRecyclerViewF'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
48+
}
49+
50+
// bintray step4:Terminal
51+
//./gradlew clean build bintrayUpload -PbintrayUser=BINTRAY_USERNAME -PbintrayKey=BINTRAY_KEY -PdryRun=false
52+
//参数说明:
53+
//-PbintrayUser=BINTRAY_USERNAME //用户名
54+
//-PbintrayKey=BINTRAY_KEY //key
55+
//-PdryRun=false //当为true的时候,会运行所有的环节,但是不会上传

0 commit comments

Comments
 (0)
Please sign in to comment.