File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
22apply plugin : ' com.github.dcendents.android-maven'
33
4- group= ' com.github.brucezz'
4+ group = ' com.github.brucezz'
55
66android {
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+ }
You can’t perform that action at this time.
0 commit comments