wttech/gradle-aem-plugin

launcher should accept options for `wrapper` task

sabberworm opened this issue · 1 comments

I like running java -jar gap.jar to generate a project scaffolding.

However I don’t have connectivity to services.gradle.org. Instead, I have a separate location where the distribution should be downloaded from.

The regular gradle wrapper task has options like --gradle-version, --distribution-type, --gradle-distribution-url and --gradle-distribution-sha256-sum to customize the generated wrapper.

I recommend the same options should be available to gap.jar and should be passed onto gradle when calling wrapper:

runBuild(listOf("wrapper", "-Plauncher.wrapper=true"))

Don't hesitate and create PR 🙂