File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -57,37 +57,18 @@ dependencies {
5757 androidTestImplementation deps. androidxJunit
5858 androidTestImplementation deps. androidxTestRunner
5959}
60- // ---------------------------------------------
6160
62- // 指定编码
6361tasks. withType(JavaCompile ) {
6462 options. encoding = " UTF-8"
6563}
6664
67- // 打包源码
6865task 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-
8870artifacts {
8971 archives sourcesJar
90- archives javadocJar
9172}
9273
9374afterEvaluate {
You can’t perform that action at this time.
0 commit comments