From c3ad8c1c37a1a492a8308dc3876c2727232737e6 Mon Sep 17 00:00:00 2001 From: Mike Penz Date: Thu, 30 May 2024 12:06:51 +0200 Subject: [PATCH] - Improve README around the `exportVariant` API - FIX https://github.com/mikepenz/AboutLibraries/issues/991 ``` ./gradlew :app-wasm:exportLibraryDefinitions -PaboutLibraries.exportPath=... -PaboutLibraries.exportVariant=wasmJs ./gradlew :app-wasm:exportLibraryDefinitions -PaboutLibraries.exportPath=... -PaboutLibraries.exportVariant=jvm ``` --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dd42ad888..cdffa4069 100644 --- a/README.md +++ b/README.md @@ -242,13 +242,21 @@ Find a sample application as the `app-desktop` module. It showcases the usage to ### Generate Dependency Information ```bash -./gradlew app-desktop:exportLibraryDefinitions -PaboutLibraries.exportPath=src/main/resources/ +./gradlew :app-desktop:exportLibraryDefinitions -PaboutLibraries.exportPath=src/main/resources/ + +# Filter exported definition by variant by passing `-PaboutLibraries.exportVariant==` +./gradlew :app-wasm:exportLibraryDefinitions -PaboutLibraries.exportPath=src/main/resources/ -PaboutLibraries.exportVariant=wasmJs +./gradlew :app-wasm:exportLibraryDefinitions -PaboutLibraries.exportPath=src/main/resources/ -PaboutLibraries.exportVariant=jvm ``` -### Run Desktop app +### Run Demo app(s) ``` +# JVM Desktop app ./gradlew :app-desktop:run + +# WASM Web app +./gradlew :app-wasm:run ``` ### Screenshot