Skip to content

Commit 7f1a0ce

Browse files
committed
update gradle
1 parent 3ec9656 commit 7f1a0ce

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

library/build.gradle

-19
Original file line numberDiff line numberDiff line change
@@ -57,37 +57,18 @@ dependencies {
5757
androidTestImplementation deps.androidxJunit
5858
androidTestImplementation deps.androidxTestRunner
5959
}
60-
//---------------------------------------------
6160

62-
// 指定编码
6361
tasks.withType(JavaCompile) {
6462
options.encoding = "UTF-8"
6563
}
6664

67-
// 打包源码
6865
task sourcesJar(type: Jar) {
6966
from android.sourceSets.main.java.srcDirs
7067
archiveClassifier.set("sources")
7168
}
7269

73-
task javadoc(type: Javadoc) {
74-
failOnError false
75-
source = android.sourceSets.main.java.sourceFiles
76-
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
77-
classpath += configurations.api
78-
classpath += configurations.implementation
79-
classpath += configurations.compileOnly
80-
}
81-
82-
// 制作文档(Javadoc)
83-
task javadocJar(type: Jar, dependsOn: javadoc) {
84-
archiveClassifier.set("javadoc")
85-
from javadoc.destinationDir
86-
}
87-
8870
artifacts {
8971
archives sourcesJar
90-
archives javadocJar
9172
}
9273

9374
afterEvaluate {

0 commit comments

Comments
 (0)