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

Feature Request: Function to make a dependency get used only during building or runData #166

Closed
Zepalesque opened this issue May 4, 2024 · 2 comments

Comments

@Zepalesque
Copy link

I’m hoping this is the correct place to open this, if not then it’d be nice if I could be redirected to the correct place

Anyway, my feature request is essentially a way, similar to things like implementation, runtimeOnly, or compileOnly, a way to specify that a dependency should only be used either while building the mod or when running datagen (and in the IDE, idk if that’s seperate though)

This would be useful for when you might want to implement cross-mod compat that references other mods inside the datagen, but don’t necessarily want to have the mod in the runClient task (or runServer either I suppose)

Maybe something like dataCompile would work? I would try to implement it myself and make a pull request, but I have no clue how gradle’s inner workings work lol

@marchermans
Copy link
Contributor

@Zepalesque
Copy link
Author

oh yeah, that seems perfect! thanks!

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

No branches or pull requests

2 participants