Skip to content

Commit

Permalink
update gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
why168 committed Sep 30, 2022
1 parent 3ec9656 commit 7f1a0ce
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,37 +57,18 @@ dependencies {
androidTestImplementation deps.androidxJunit
androidTestImplementation deps.androidxTestRunner
}
//---------------------------------------------

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

// 打包源码
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
archiveClassifier.set("sources")
}

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

// 制作文档(Javadoc)
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set("javadoc")
from javadoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
}

afterEvaluate {
Expand Down

0 comments on commit 7f1a0ce

Please sign in to comment.