@@ -24,6 +24,10 @@ android {
2424
2525}
2626
27+ configurations {
28+ javadocDeps
29+ }
30+
2731dependencies {
2832 implementation fileTree(dir : ' libs' , include : [' *.jar' ])
2933
@@ -34,9 +38,43 @@ dependencies {
3438
3539 // Branch
3640 api ' io.branch.sdk.android:library:3.0.3'
41+ javadocDeps ' io.branch.sdk.android:library:3.0.3'
3742
3843 // Adobe
39- implementation ' com.adobe.marketing.mobile:userprofile:1.+'
40- implementation ' com.adobe.marketing.mobile:sdk-core:1.+'
44+ implementation ' com.adobe.marketing.mobile:userprofile:1.0.1'
45+ implementation ' com.adobe.marketing.mobile:sdk-core:1.0.5'
46+ }
47+
48+ // ------------- Javadocs ---------------//
49+ tasks. withType(Javadoc ) {
50+ options. addStringOption(' Xdoclint:none' , ' -quiet' )
51+ options. addStringOption(' encoding' , ' UTF-8' )
52+ options. addStringOption(' charSet' , ' UTF-8' )
53+ }
54+
55+ task docs (type : Javadoc ) {
56+ source = android. sourceSets. main. java. srcDirs
57+ classpath = files(((Object ) android. bootClasspath. join(File . pathSeparator)))
58+ }
4159
60+ task javadocs (type : Javadoc ) {
61+ source = android. sourceSets. main. java. srcDirs
62+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
63+ classpath + = configurations. javadocDeps
64+
65+ exclude ' **/R.html' , ' **/R.*.html' , ' **/index.html'
66+
67+ options {
68+ links " http://docs.oracle.com/javase/8/docs/api/"
69+ linksOffline " http://d.android.com/reference" ," ${ android.sdkDirectory} /docs/reference"
70+
71+ tags = [ " apiNote" , " implSpec" , " implNote" ]
72+ }
4273}
74+
75+ task javadocJar (type : Jar , dependsOn : javadocs) {
76+ classifier = ' javadoc'
77+ from javadocs. destinationDir
78+ }
79+
80+ apply from : ' https://raw.githubusercontent.com/BranchMetrics/GradleToMavenOptionalDependencies/master/gradle-maven-push.gradle'
0 commit comments