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

sources jar remapping #102

Merged
merged 9 commits into from
Oct 15, 2024
Merged

sources jar remapping #102

merged 9 commits into from
Oct 15, 2024

Conversation

rhysdh540
Copy link
Contributor

@rhysdh540 rhysdh540 commented Oct 7, 2024

adds a function MinecraftConfig.remapSources just like remap, along with supporting infrastructure to remap said sources (RemapSourcesJarTaskImpl)

tests in 1.21-NeoForged-Fabric

import javax.inject.Inject
import kotlin.io.path.*

abstract class RemapSourcesJarTaskImpl @Inject constructor(provider: MinecraftConfig): RemapJarTaskImpl(provider) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this extending RemapJar, imo it'd make more sense if you made an AbstractRemapJarTask that they both implemented. mainly so things like tasks.withType don't accidentally target both when they don't mean to

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense

@wagyourtail wagyourtail merged commit bed7903 into unimined:main Oct 15, 2024
20 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants