Skip to content

Commit

Permalink
release version 1.2.5 with javadoc & source as jar file.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkhezry committed Nov 9, 2018
1 parent adb4f2c commit 6595bc6
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
Binary file modified .idea/caches/gradle_models.ser
Binary file not shown.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "com.github.bkhezry.demo"
minSdkVersion 17
targetSdkVersion 28
versionCode 12
versionName "1.1.2"
versionCode 125
versionName "1.2.5"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
27 changes: 25 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 17
targetSdkVersion 28
versionCode 23
versionName "1.2.3"
versionCode 125
versionName "1.2.5"
}

buildTypes {
Expand Down Expand Up @@ -46,3 +46,26 @@ dependencies {
annotationProcessor "com.squareup.dagger:dagger-compiler:$daggerVersion"
}

// build a jar with source files
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
}

// build a jar with javadoc
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
}

0 comments on commit 6595bc6

Please sign in to comment.