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

Build licenses json only for specific target in multiplatform module #991

Closed
syt0r opened this issue May 28, 2024 · 2 comments · Fixed by #994
Closed

Build licenses json only for specific target in multiplatform module #991

syt0r opened this issue May 28, 2024 · 2 comments · Fixed by #994
Assignees

Comments

@syt0r
Copy link

syt0r commented May 28, 2024

About this issue

I have a multiplatform module (app written with compose) with android and jvm targets. I want to use gradle command to generate json specifically for desktop target while using automatic task for android. The issue is that it looks like android dependencies appear in the output of this manually launched task and I can't find any configuration except for build variant, but it doesn't allow to specify target platform, right? Is it not possible at the moment to generate json only for one specific platform?

Repository owner deleted a comment from Tanwiwat May 29, 2024
mikepenz added a commit that referenced this issue May 30, 2024
  - FIX #991
```
./gradlew :app-wasm:exportLibraryDefinitions -PaboutLibraries.exportPath=... -PaboutLibraries.exportVariant=wasmJs
./gradlew :app-wasm:exportLibraryDefinitions -PaboutLibraries.exportPath=... -PaboutLibraries.exportVariant=jvm
```
@mikepenz
Copy link
Owner

Good day.

Please have a look at the exportVariant property which you can pass to the CLI


# Filter exported definition by variant by passing `-PaboutLibraries.exportVariant==<VARIANT>`
./gradlew :app-wasm:exportLibraryDefinitions -PaboutLibraries.exportPath=src/main/resources/ -PaboutLibraries.exportVariant=wasmJs
./gradlew :app-wasm:exportLibraryDefinitions -PaboutLibraries.exportPath=src/main/resources/ -PaboutLibraries.exportVariant=jvm

@syt0r
Copy link
Author

syt0r commented May 30, 2024

Thanks for the answer, it works!

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 a pull request may close this issue.

2 participants