diff --git a/viewpagerlib/build.gradle b/viewpagerlib/build.gradle index 99b5026..1abc719 100644 --- a/viewpagerlib/build.gradle +++ b/viewpagerlib/build.gradle @@ -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' }