alexvasilkov / GradleGitDependenciesPlugin

Gradle plugin to add external git repos as project dependencies
Apache License 2.0
105 stars 15 forks source link

Unable to suppress plugin output using --quiet option #16

Closed bonivi closed 3 years ago

bonivi commented 3 years ago

Running a command gradle --quiet build displays output like

$gradle --quiet build
Git dependency: Added 'testing-repo'

The reason is that plugin outputs all messages using println which is rough equivalent of logger.quiet, so you can't suppress them. Can you replace println with logger.lifecycle ? In this way the output of plugin can be suppressed.

alexvasilkov commented 3 years ago

Indeed, thanks for the feedback! I'll fix it in the next version.

bonivi commented 3 years ago

When the fix will be implemented ? When the next version will be released ?

alexvasilkov commented 3 years ago

There are no major issues fixes or features are planned yet, and this one seems quite minor for a dedicated release. Is this issue critical for you somehow?

bonivi commented 3 years ago

In a bash script we have something like projectVersion=$(./gradlew -q printProjectVersion) When we use the plugin bash variable projectVersion contains also "Git dependency..." messages

alexvasilkov commented 3 years ago

Aha, that must be annoying. Ok, let's see if I can release a quick fix.

alexvasilkov commented 3 years ago

This should be fixed now, released as 2.0.3. Feel free to reopen if you'll see any issues.