Skip to content

Commit

Permalink
功能和说明文档增加完成
Browse files Browse the repository at this point in the history
  • Loading branch information
LillteZheng committed Jan 20, 2020
1 parent 2d98379 commit e79deef
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions viewpagerlib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,36 +22,14 @@ android {
}
}
}
// 指定编码
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}

// 打包源码
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
failOnError false
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.compile
}

// 制作文档(Javadoc)
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'com.android.support:appcompat-v7:28.0.0'
testCompile 'junit:junit:4.12'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

}

0 comments on commit e79deef

Please sign in to comment.