You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is, however, a problem, because project.buildDir may be changed by other plugins. This results in the plugin producing output in unexpected places if the plugins are applied in a certain order.
Instead, the lazy properties API has the "convention" mechanism accepting providers, which is supposed to be be used for default values:
dataDir = project.objects.property(File)
.convention(project.layout.buildDirectory.dir('scoverage')) // dynamic default values should be providers
highlighting = project.objects.property(Boolean)
.convention(true) // static default values can be immediate
The text was updated successfully, but these errors were encountered:
Right now, the extension object directly configures default values of its properties in the constructor:
This is, however, a problem, because
project.buildDir
may be changed by other plugins. This results in the plugin producing output in unexpected places if the plugins are applied in a certain order.Instead, the lazy properties API has the "convention" mechanism accepting providers, which is supposed to be be used for default values:
The text was updated successfully, but these errors were encountered: