Skip to content

Commit

Permalink
more docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Jul 23, 2024
1 parent 9e95fbf commit c459689
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ shadeDowngradedApi {
The tasks have all the same flags as the extension, so you can change them separately,
their default value is to use the global one from the extension.

If you are merging multiple downgraded jars, please merge from the downgradeJar tasks, and then shade on the resulting mono-jar.
otherwise some API stubs may be missing, due to how shade only includes what is used.

Optionally, you can also depend on the shadeDowngradedApi task when running build.

```gradle
Expand Down
1 change: 1 addition & 0 deletions docs/Bytecode Manipulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Stubs have several other fields that change their behavior:
mostly for things like reflection and runtime class definition.
* `noSpecial` indicates that the stub should not be used for `INVOKESPECIAL` calls.
* `downgradeVersion` adds an extra argument to the stub for the original version of the class, this is useful for multi-version stubs, such as reflection.
* `excludeChild` prevent a stub from being applied to a child-class of the target. for example, `String#isEmpty` is since java 6, but `CharSequence#isEmpty` is since java 15.

### Modify

Expand Down

0 comments on commit c459689

Please sign in to comment.