Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source Remapping #1

Open
CoolMineman opened this issue Jul 8, 2021 · 0 comments
Open

Source Remapping #1

CoolMineman opened this issue Jul 8, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@CoolMineman
Copy link
Member

Source remapping would be useful for publishing sources jars and consuming sources jars from loom. None of the options seem pleasant
Some options:

eclipse jdt based - dropped java 8 support and I'd like to keep targeting java 8, also doesn't use nio but that's not the end of the world. existing tools exist.

javaparser based - lexical preserving parsing seems to be buggy see javaparse/javaparser#3284 additionally the api is fairly clunky. I pushed some progress on a javaparser tool to a separate branch but I don't want to continue it rn

simple find and replace - can only consume sources jars. easyish to implement.

semanicdb - needs further evaluation https://github.com/scalameta/scalameta/blob/main/semanticdb/semanticdb3/guide.md#javac-compiler-plugin

Other (bad) options:
own javac plugin
basically own java compiler front end

@CoolMineman CoolMineman added the enhancement New feature or request label Jul 8, 2021
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

No branches or pull requests

1 participant