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

Made migrateMappings source-set aware and added an inPlace option #281

Closed
wants to merge 2 commits into from

Conversation

shartte
Copy link
Contributor

@shartte shartte commented Sep 19, 2020

No description provided.

Copy link
Contributor

@zml2008 zml2008 left a comment

Choose a reason for hiding this comment

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

A few small things that stood out to me.

I was originally thinking each source set should be its own gradle task -- but loading, resolving, and merging mappings for every source set probably knocks out any efficiency gains that'd come from working in parallel.

This also fixes #246


public MigrateMappingsTask() {
inputDir = getProject().file("src/main/java").toPath();
outputDir = getProject().file("remappedSrc").toPath();
sourceSets = new ArrayList<>();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not use the Property and DomainObjectSet API? Gradle seems to be preferring that api for its newer tasks, and some portion of the API exists in 4.10 already: https://docs.gradle.org/4.10.2/userguide/lazy_configuration.html

MappingSet mappingSet = loadMappingSet(mappings, mappingsProvider);

Path projectDir = project.getProjectDir().toPath();
Path outputBaseDir = project.getBuildDir().toPath().resolve("remapped");
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably match up with the name of the task -- mappingsMigrated or something?

Also would be good to make this configurable.

@modmuss50 modmuss50 added this to the 0.6.0 milestone Dec 11, 2020
@modmuss50 modmuss50 removed this from the 0.6.0 milestone Jan 29, 2021
@shartte
Copy link
Contributor Author

shartte commented Jul 16, 2024

It's so far out of date, it doesn't make a lot of sense to update this 😓

@shartte shartte closed this Jul 16, 2024
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.

3 participants