From e79deef5be66e7eb5d1d00113a450f40742df60b Mon Sep 17 00:00:00 2001 From: LillteZheng <845731923@qq.com> Date: Mon, 20 Jan 2020 11:13:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=92=8C=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=A2=9E=E5=8A=A0=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- viewpagerlib/build.gradle | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) 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' }