compose-report-to-html icon indicating copy to clipboard operation
compose-report-to-html copied to clipboard

[CLI] Feature request: Don't download Java when running the NPM artifact

Open ZacSweers opened this issue 2 years ago • 6 comments

Even if I run with JAVA_HOME pointed at a java 11 installation, it still tries to download one on the fly.

$ composeReport2Html -app STAR -overallStatsReport samples/star/build/compose_metrics/star_release-module.json -detailedStatsMetrics samples/star/build/compose_metrics/star_release-composables.csv -composableMetrics samples/star/build/compose_metrics/star_release-composables.txt -classMetrics samples/star/build/compose_metrics/star_release-classes.txt -o tmp
Downloading java runtime environment for version 11

ZacSweers avatar Dec 18 '22 20:12 ZacSweers

@ZacSweers I'm not sure but I guess this issue is related to jdeploy. I'm also looking if how can we remove dependency on jdeploy and publish CLI independent of it.

PatilShreyas avatar Dec 19 '22 05:12 PatilShreyas

Yeah it's due to jdeploy

ZacSweers avatar Dec 19 '22 08:12 ZacSweers

Need help here regarding publishing this CLI without jdeploy!

PatilShreyas avatar Jan 21 '23 11:01 PatilShreyas

any update?

shnaseri avatar Jan 22 '23 17:01 shnaseri

For CLI, I'm still struggling to find alternatives to jdeploy. But the good news is I'm working on the gradle plugin, so that we don't need to use CLI

PatilShreyas avatar Jan 23 '23 00:01 PatilShreyas

@ZacSweers I'm not sure but I guess this issue is related to jdeploy. I'm also looking if how can we remove dependency on jdeploy and publish CLI independent of it.

@ZacSweers exact issue isn't solved yet. But we have published a gradle plugin which does the report generation work automatically. This can help you to be independent from jdeploy.

Gradle plugin usage: https://patilshreyas.github.io/compose-report-to-html/use/using-gradle-plugin/

PatilShreyas avatar Feb 12 '23 18:02 PatilShreyas