Skip to content

Add flag for shadowJar task for no relocation#6207

Closed
Machine-Maker wants to merge 1 commit into
PaperMC:masterfrom
Machine-Maker:feature/no-relocation
Closed

Add flag for shadowJar task for no relocation#6207
Machine-Maker wants to merge 1 commit into
PaperMC:masterfrom
Machine-Maker:feature/no-relocation

Conversation

@Machine-Maker
Copy link
Copy Markdown
Member

useful while running a debugger

@Machine-Maker Machine-Maker requested review from a team as code owners July 16, 2021 21:03
+ }
+}
+
+val noRelocation = providers.systemProperty("Paper.no-relocation").forUseAtConfigurationTime();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think I'd prefer this to just be a separate task. Would be simpler, 2 separate tasks that do different things, rather than 1 task which will do different things depending on the environment. The common parts of the task configuration could be pulled out via extension functions (examples):

https://github.com/PaperMC/paperweight/blob/main/buildSrc/src/main/kotlin/config-publish.gradle.kts#L14-L24
https://github.com/PaperMC/paperweight/blob/main/buildSrc/src/main/kotlin/config-publish.gradle.kts#L29

&

https://github.com/PaperMC/paperweight/blob/main/buildSrc/src/main/kotlin/config-publish.gradle.kts#L111-L138
https://github.com/PaperMC/paperweight/blob/main/buildSrc/src/main/kotlin/config-publish.gradle.kts#L67-L84

@stale
Copy link
Copy Markdown

stale Bot commented Sep 18, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@Machine-Maker Machine-Maker marked this pull request as draft September 21, 2021 19:13
@stale
Copy link
Copy Markdown

stale Bot commented Nov 20, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale
Copy link
Copy Markdown

stale Bot commented Nov 28, 2021

This issue has been automatically closed because it has not had activity in a long time. If the issue still applies to the most recent supported version, please open a new issue referencing this original issue.

@stale stale Bot closed this Nov 28, 2021
@Machine-Maker
Copy link
Copy Markdown
Member Author

I was circling back to this, and now I'm not sure a separate task is useful now? Because there are 4 "jar" tasks, and you'd want a separate one for each.

@Machine-Maker Machine-Maker reopened this Jan 8, 2022
@stale stale Bot removed the resolution: stale label Jan 8, 2022
@Machine-Maker Machine-Maker force-pushed the feature/no-relocation branch from 6cc9d07 to 5056f73 Compare January 8, 2022 00:56
@Machine-Maker Machine-Maker marked this pull request as ready for review January 8, 2022 00:56
@stale
Copy link
Copy Markdown

stale Bot commented Mar 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@Machine-Maker
Copy link
Copy Markdown
Member Author

Rebased and updated for grade 7.4

@stale
Copy link
Copy Markdown

stale Bot commented May 31, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@Machine-Maker Machine-Maker force-pushed the feature/no-relocation branch from 59c0bf0 to 5b3d4fb Compare June 6, 2022 00:05
@stale stale Bot removed the resolution: stale label Jun 6, 2022
@underscore11code
Copy link
Copy Markdown
Member

Superseded by this paperweight commit.

@underscore11code underscore11code added the resolution: superseded A new PR has replaced this one label Aug 24, 2023
@Machine-Maker Machine-Maker deleted the feature/no-relocation branch August 24, 2023 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

resolution: superseded A new PR has replaced this one

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

4 participants