Skip to content

Rework shading to upgrade embedded ASM classes to Java 8#32

Merged
mcculls merged 6 commits intomainfrom
mcculls/rework-shading
Nov 9, 2025
Merged

Rework shading to upgrade embedded ASM classes to Java 8#32
mcculls merged 6 commits intomainfrom
mcculls/rework-shading

Conversation

@mcculls
Copy link
Copy Markdown
Collaborator

@mcculls mcculls commented Nov 9, 2025

What Does This Do

The original ASM classes target Java 1.5 and don't contain stack-map information.

Upgrading their bytecode to Java 8 and generating stack-maps means they can be verified faster at runtime. To do this we replace the shadow plugin with a simple remapper using asm-commons that applies the relocation and version upgrade at the same time.

This PR also drops the -all classifier in favour of a single artifact which always embeds ASM to avoid class-path conflicts.

Motivation

Faster loading of the embedded ASM classes at runtime.

Contributor Checklist

Jira ticket: [PROJ-IDENT]

@mcculls mcculls requested a review from a team as a code owner November 9, 2025 21:39
@mcculls mcculls added the enhancement New feature or request label Nov 9, 2025
@mcculls mcculls requested review from dougqh and removed request for dougqh November 9, 2025 21:39
@mcculls mcculls merged commit cea8ed2 into main Nov 9, 2025
6 checks passed
@mcculls mcculls deleted the mcculls/rework-shading branch November 9, 2025 21:46
@github-actions github-actions Bot added this to the 0.0.3 milestone Nov 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant