SettingsDslIntegrationSpec.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Add usage attribute to buildscript classpath

The classpath configuration used by build and init scripts to build

their classpath was lacking the `Usage` attribute.

It is now properly configured to be `java-runtime` given the role of

this configuration.

Fixes #7826

    • -0
    • +13
    ./SettingsDslIntegrationSpec.groovy
  1. … 4 more files in changeset.
Fix dynamic Settings convention access in Groovy scripts (#7065)

By explicitly implementing HasConvention in DefaultSettings.

Exposing ExtensionAware had disabled Groovy automatic decoration for

conventions.

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -0
    • +17
    ./SettingsDslIntegrationSpec.groovy
  1. … 1 more file in changeset.
Update SettingsDslIntegrationSpec to have example for Groovy and Kotlin

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@plexxi.com>

    • -33
    • +48
    ./SettingsDslIntegrationSpec.groovy
Add extension tests to SettingsDslIntegrationSpec

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@plexxi.com>

    • -0
    • +63
    ./SettingsDslIntegrationSpec.groovy
  1. … 1 more file in changeset.
Make CodeNarc happy

Allow access to `Settings` DSL from `buildscript` block

This is necessary for backwards compatibility, as the `Settings`

DSL was available in the `buildscript` block before.

The new `pluginRepositories` block on the other hand should be

locked down so only project properties are accessible. Calls to

the `Settings` API could lead to confusing result at this early

stage of evaluation.

We should collect the use cases that users currently solve using

the `Settings` API in the `buildscript` block and see if we can

support them in a way that prevents surprising results.

    • -0
    • +36
    ./SettingsDslIntegrationSpec.groovy
  1. … 2 more files in changeset.