Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7cd1a1d5
authored
Dec 16, 2021
by
andrewlewis
Committed by
Ian Baker
Dec 20, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Include images in dackka output
PiperOrigin-RevId: 416848472
parent
e5ec6b31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
javadoc_combined.gradle
javadoc_combined.gradle
View file @
7cd1a1d5
...
...
@@ -67,12 +67,12 @@ class CombinedJavadocPlugin implements Plugin<Project> {
}
}
def
dackkaOutputDir
=
project
.
file
(
"$project.buildDir/docs/dackka"
)
project
.
task
(
DACKKA_TASK_NAME
,
type:
JavaExec
)
{
doFirst
{
// Recreate the output directory to remove any leftover files from a previous run.
def
outputDir
=
project
.
file
(
"$project.buildDir/docs/dackka"
)
project
.
delete
outputDir
project
.
mkdir
outputDir
project
.
delete
dackkaOutputDir
project
.
mkdir
dackkaOutputDir
// Download the Dackka JAR.
new
URL
(
DACKKA_JAR_URL
).
withInputStream
{
...
...
@@ -104,7 +104,7 @@ class CombinedJavadocPlugin implements Plugin<Project> {
.
filter
({
f
->
project
.
file
(
f
).
exists
()
}).
join
(
";"
)
def
dependenciesString
=
project
.
files
(
dependencies
).
asPath
.
replace
(
':'
,
';'
)
args
(
"-moduleName"
,
""
,
"-outputDir"
,
"$
o
utputDir"
,
"-outputDir"
,
"$
dackkaO
utputDir"
,
"-globalLinks"
,
"$globalLinksString"
,
"-loggingLevel"
,
"WARN"
,
"-sourceSet"
,
"-src $sourcesString -classpath $dependenciesString"
,
...
...
@@ -113,6 +113,18 @@ class CombinedJavadocPlugin implements Plugin<Project> {
}
description
=
"Generates combined javadoc for developer.android.com."
classpath
=
project
.
files
(
new
File
(
getTemporaryDir
(),
"dackka.jar"
))
doLast
{
libraryModules
.
each
{
libraryModule
->
project
.
copy
{
from
"${libraryModule.projectDir}/src/main/javadoc"
into
"${dackkaOutputDir}/reference/"
}
project
.
copy
{
from
"${libraryModule.projectDir}/src/main/javadoc"
into
"${dackkaOutputDir}/reference/kotlin/"
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment