Skip to content

Commit

Permalink
打包jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
ailiwean committed May 1, 2020
1 parent a84900b commit 5c93392
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 27 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ android {
}

dependencies {
implementation project(path: ':module_camera')
implementation project(path: ':module_camera')
//implementation 'com.github.ailiwean:NBZxing:0.0.1'
}
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
buildscript {

repositories {
maven { url 'https://jitpack.io' }

google()
jcenter()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
Expand Down
26 changes: 1 addition & 25 deletions module_camera/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,4 @@ dependencies {

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
}

artifacts {
archives sourcesJar
archives javadocJar
}
}

0 comments on commit 5c93392

Please sign in to comment.