Commit Graph

3 Commits

Author SHA1 Message Date
Anton Hansson
ee390f26eb Enhance documentation in mainline stubs
Metalava has a feature to "enhance documentation" which is mostly based
on auto-generating documentation text based on source-retention
annotations. This is turned on automatically for doc stubs, but here
we are enabling it for module's jar stubs as well.

The point of this is to be able to replace the module source code with
module jar stub source code when generating doc stubs -- something
previously not possible because most source-retention annotations are
not present in the jar stubs.

In order for the enhancement to work properly, metalava needs to be
passed the annotation source code rather than the annotations library.
This is because of various javadoc tags controlling what documentation
is generated, e.g. @paramDoc, @returnDoc etc.

Bug: 186197911
Test: manually inspect module stub source code is enhanced
Change-Id: I3fda4cd64e49c1da33fe614c30aafd9fa0dba3b9
2021-09-20 15:11:55 +01:00
Colin Cross
8573dc4a41 Set dist_group: "android" for module java_sdk_libraries
dist_group replaces owner and the default is going to change, set it
to the current default "android" for module java_sdk_libraries.

Bug: 186723288
Test: m checkbuild
Change-Id: Id4d20471a8106718fb1529f5c83c9ca5ffb2a569
2021-06-01 14:29:40 -07:00
Anton Hansson
807c08357a Move module defaults into a dedicated .bp file
I'm adding some other modules in a follow up, and to avoid creating
a large messy bp file, do some re-organization ahead of time.

Bug: 184839225
Bug: 185128417
Test: m
Change-Id: Icd655e680f7138582ddf34fb0e0e78e9bdd7a927
2021-04-14 19:07:15 +01:00