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

Add multimodule example #7

Open
masmc05 opened this issue Aug 25, 2022 · 2 comments
Open

Add multimodule example #7

masmc05 opened this issue Aug 25, 2022 · 2 comments

Comments

@masmc05
Copy link

masmc05 commented Aug 25, 2022

It's a bit hard for me to understand how to use that in multimodule

i tried implementation(project(path: ':mymodule', configuration: 'reobf')), it doesn't show any classes from dependency, however implementation(project(path: ':mymodule')) works fine, but not obfuscated (and implementation(project(path: ':mymodule', configuration: 'reobfJar')) can't even be detected, the sync fails because project isn't found, so that 'reobf' configuration is correct for sure)

maybe I'll find a way, but i'm sure this example will make someone's life easier

@jpenilla
Copy link
Member

If you want transitive deps to be pulled in through the reobf configuration, I think you would need to do configurations.reobf { extendsFrom(configurations.apiElements.get(), configurations.runtimeElements.get()) } in the paperweight project, doing this automatically would break setups where people apply shadow in the paperweight project. And the new reobf artifact configuration API makes it slightly less simple to know when we should handle shadow. Eventually, I'll have a closer look and come up with a better solution. Closing this and will open a tracking issue on paperweight.

@jpenilla jpenilla closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2023
@jpenilla
Copy link
Member

might have been a bit quick to close, this can stay open for the example bit ig

@jpenilla jpenilla reopened this Jan 31, 2023
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