Skip to content

Commit

Permalink
Merge pull request #16 from khan-tm/master
Browse files Browse the repository at this point in the history
Build with java doc documentation comments
  • Loading branch information
khan-tm authored Mar 16, 2017
2 parents d173f63 + 56405a1 commit 9d9ce36
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 8 deletions.
20 changes: 19 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ In this module, we've included following APIs...

### Download .apk file

[Click here to download debug version…] (app/build/outputs/apk)
[Click here to download debug version…](app/build/outputs/apk)

### Importing the Library

Expand Down
Binary file removed app/build/outputs/apk/app-debug.apk
Binary file not shown.
4 changes: 1 addition & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
}
}

Expand Down
58 changes: 55 additions & 3 deletions utilities/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'

ext {
publishedGroupId = 'com.github.abhishek-tm'
libraryName = 'Utilities'
artifact = 'utilities'

libraryDescription = 'Google map utilities and services'

siteUrl = 'https://github.com/abhishek-tm/google-utilities'
gitUrl = 'https://github.com/abhishek-tm/google-utilities.git'

libraryVersion = '1.0.5'

developerId = 'abhishek-tm'
developerName = 'Abhishek Jain'
developerEmail = 'abhishek@teramatrix.in'

licenseName = 'The GNU General Public License, Version 3.0'
licenseUrl = 'http://www.gnu.org/licenses/gpl-3.0.html'
allLicenses = ["GPL-3.0"]
}

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
Expand All @@ -9,7 +30,7 @@ android {
minSdkVersion 14
targetSdkVersion 25
versionCode 1
versionName "1.0"
versionName libraryVersion
}
buildTypes {
release {
Expand Down Expand Up @@ -38,7 +59,38 @@ dependencies {
compile 'com.google.android.gms:play-services-location:10.0.0'
}

task sourcesJar(type: Jar) {
classifier = 'sources'
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
options.addStringOption('charSet', 'UTF-8')
}

task javadocGenerate(type: Javadoc) {
// prints javadoc outputs when info logging level set
logging.captureStandardError LogLevel.INFO

description = "Generates javadoc"
source = android.sourceSets.main.java.srcDirs

classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
exclude '**/BuildConfig.java'
exclude '**/R.java'
}

task javadocPackage(dependsOn: javadocGenerate, type: Jar) {
baseName = artifact
classifier = "javadoc"
version libraryVersion
from tasks.javadocGenerate.destinationDir
}

task sourcePackage(type: Jar) {
baseName = artifact
classifier = "sources"
version libraryVersion
from android.sourceSets.main.java.srcDirs
}

artifacts {
archives javadocPackage, sourcePackage
}

0 comments on commit 9d9ce36

Please sign in to comment.