gradle / gradle-org-conventions-plugin

9 stars 6 forks source link

Allow custom publishing strategy #28

Closed blindpirate closed 5 months ago

blindpirate commented 5 months ago

In current implementation, build scan is always publishIfAuthenticated, which means that if users want to customize the publishing strategy, it's impossible - because buildScan.publishing seems to be stacked instead overwriting each other.

We should allow users to customize their publishing. From: @bamboo :

I don't want to publish build scans for every build I run so I tried to write an init script using develocity.buildScan.publishing.onlyIf { ... } but that seemed to have no effect in the Gradle build