1212 * and limitations under the License.
1313 */
1414
15- // Additional configurations for javadoc
16- configurations {
17- linkableJavadoc {
18- transitive false
19- }
20- }
21-
2215dependencies {
2316 compile group : ' com.google.code.gson' , name : ' gson' , version : ' 2.8.2'
2417 compile group : ' commons-codec' , name : ' commons-codec' , version : ' 1.6'
2518 compile project(' :cloudant-http' )
26- linkableJavadoc project(' :cloudant-http' )
2719 // test dependencies
2820 testImplementation ' org.junit.jupiter:junit-jupiter-api:5.1.0'
2921 testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.1.0'
@@ -37,25 +29,15 @@ javadoc {
3729 options. overview = " overview.html"
3830 include(" **/lightcouch/*Exception.java" ,
3931 " **/client/api/**" )
32+ // Resolve the links to the cloudant-http project javadoc
33+ options. linksOffline(" http://static.javadoc.io/com.cloudant/cloudant-http/${ project.version} " ," ${ project.rootProject.rootDir} /cloudant-http/build/docs/javadoc" );
4034}
4135
4236javadocJar {
4337 // Include the logging.properties example
4438 from rootProject. rootDir. path + ' /logging.properties'
4539}
4640
47- gradle. projectsEvaluated {
48- javadoc {
49- // Add the offline link options for the client API pointing to javadoc.io using the resolved
50- // java-cloudant version. Use the package-list from the javadoc zip file.
51- configurations. linkableJavadoc. each {
52- String moduleName = configurations. linkableJavadoc. resolvedConfiguration. firstLevelModuleDependencies. first(). moduleName;
53- String moduleVers = configurations. linkableJavadoc. resolvedConfiguration. firstLevelModuleDependencies. first(). moduleVersion;
54- options. linksOffline(" http://static.javadoc.io/com.cloudant/$moduleName /$moduleVers " ," ../$moduleName /build/docs/javadoc" );
55- }
56- }
57- }
58-
5941// we need Java 1.8 features for JUnit 5 features, but our production code is 1.6
6042compileTestJava {
6143 sourceCompatibility = 1.8
0 commit comments