Skip to content

Commit 8ca53f2

Browse files
greenrobot-teamgreenrobot
authored andcommitted
Javadoc: generate into docs directory (was reporting dir).
1 parent 4958314 commit 8ca53f2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

objectbox-java/build.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ apply plugin: "com.github.spotbugs"
44
sourceCompatibility = JavaVersion.VERSION_1_8
55
targetCompatibility = JavaVersion.VERSION_1_8
66

7+
ext {
8+
javadocForWebDir = "$buildDir/docs/web-api-docs"
9+
}
10+
711
dependencies {
812
api project(':objectbox-java-api')
913
implementation 'org.greenrobot:essentials:3.0.0-RC1'
@@ -56,7 +60,7 @@ task javadocForWeb(type: Javadoc) {
5660
source = filteredSources + srcApi
5761

5862
classpath = sourceSets.main.output + sourceSets.main.compileClasspath
59-
destinationDir = reporting.file("web-api-docs")
63+
destinationDir = file(javadocForWebDir)
6064

6165
title = "ObjectBox Java ${version} API"
6266
options.bottom = 'Available under the Apache License, Version 2.0 - <i>Copyright &#169; 2017-2020 <a href="http://objectbox.io/">ObjectBox Ltd</a>. All Rights Reserved.</i>'
@@ -86,6 +90,8 @@ task javadocForWeb(type: Javadoc) {
8690
" color:#474747;\n" +
8791
" overflow:auto;\n" +
8892
"}")
93+
94+
println "Javadoc for web created at $destinationDir"
8995
}
9096
}
9197

@@ -96,7 +102,7 @@ task packageJavadocForWeb(type: Zip, dependsOn: javadocForWeb) {
96102
archiveFileName = "objectbox-java-web-api-docs.zip"
97103
destinationDirectory = file("$buildDir/dist")
98104

99-
from reporting.file("web-api-docs")
105+
from file(javadocForWebDir)
100106

101107
doLast {
102108
println "Javadoc for web packaged to ${file("$buildDir/dist/objectbox-java-web-api-docs.zip")}"

0 commit comments

Comments
 (0)