Skip to content

Commit 8495ccc

Browse files
committed
v1.4
1 parent 0d4200e commit 8495ccc

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

cardstackview/build.gradle

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'com.github.dcendents.android-maven'
33

4-
group='com.github.brucezz'
4+
group = 'com.github.brucezz'
55

66
android {
77
compileSdkVersion 24
@@ -10,8 +10,8 @@ android {
1010
defaultConfig {
1111
minSdkVersion 14
1212
targetSdkVersion 24
13-
versionCode 1
14-
versionName "1.0"
13+
versionCode 4
14+
versionName "1.4"
1515
}
1616
buildTypes {
1717
release {
@@ -26,3 +26,17 @@ dependencies {
2626
compile 'com.android.support:appcompat-v7:24.2.1'
2727
testCompile 'junit:junit:4.12'
2828
}
29+
// 指定编码
30+
tasks.withType(JavaCompile) {
31+
options.encoding = "UTF-8"
32+
}
33+
34+
// 打包源码
35+
task sourcesJar(type: Jar) {
36+
from android.sourceSets.main.java.srcDirs
37+
classifier = 'sources'
38+
}
39+
40+
artifacts {
41+
archives sourcesJar
42+
}

0 commit comments

Comments
 (0)