ModelDslCreationIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Software Model @UnsupportedWithInstantExecution

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

    • -0
    • +2
    ./ModelDslCreationIntegrationTest.groovy
  1. … 76 more files in changeset.
Mark software model tests as @UnsupportedWithInstantExecution

to reduce CI time and noise when making changes

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

    • -0
    • +2
    ./ModelDslCreationIntegrationTest.groovy
  1. … 77 more files in changeset.
Mark software model tests as @UnsupportedWithInstantExecution

to reduce CI time and noise when making changes

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

    • -0
    • +2
    ./ModelDslCreationIntegrationTest.groovy
  1. … 77 more files in changeset.
Mark software model tests as @UnsupportedWithInstantExecution

to reduce CI time and noise when making changes

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

    • -0
    • +2
    ./ModelDslCreationIntegrationTest.groovy
  1. … 77 more files in changeset.
Make software model tasks accessible using abbreviated names again

This was broken by a refactoring towards lazy task configuration,

because we had no test coverage for this case.

    • -1
    • +1
    ./ModelDslCreationIntegrationTest.groovy
  1. … 4 more files in changeset.
Change `DefaultNamedDomainObjectCollection` to better handle elements added using a provider, in particular when locating elements by name.

Change `DefaultTaskContainer` to use this to implement `createLater()` rather than the existing placeholder actions, to make deferred task creation less of a special case.

    • -1
    • +1
    ./ModelDslCreationIntegrationTest.groovy
  1. … 9 more files in changeset.
Replaced a bunch of usages of `$('p')` with `$.p`

    • -8
    • +8
    ./ModelDslCreationIntegrationTest.groovy
  1. … 32 more files in changeset.
Fixed merge problem.

    • -3
    • +1
    ./ModelDslCreationIntegrationTest.groovy
Fix integration test

    • -3
    • +1
    ./ModelDslCreationIntegrationTest.groovy
Changed the descriptor for DSL rules so that it more closely matches the expression used in the code to reference the subject.

This change also detangles the subject path from the DSL rule descriptor, so that they can be different.

    • -4
    • +62
    ./ModelDslCreationIntegrationTest.groovy
  1. … 25 more files in changeset.
Clean up code

- Remove todo

- Make method private

- Encapsulate property and owner in PropertyContext

- Remove node initializer check from ModelMapNodeInitializerExtractionStrategy

- Inlining a bunch of fields in DefaultNodeInitializerRegistry

- remove hasNodeInitializer method from NodeInitializerRegistry

+review REVIEW-5652

    • -1
    • +0
    ./ModelDslCreationIntegrationTest.groovy
  1. … 5 more files in changeset.
Fixes multiline assertion on windows

+review REVIEW-5652

    • -5
    • +5
    ./ModelDslCreationIntegrationTest.groovy
Temporarily disabling exception format assertion - fails on windows even with line separators converted

    • -7
    • +6
    ./ModelDslCreationIntegrationTest.groovy
Fixing another windows line separator issue

+review REVIEW-5652

    • -2
    • +4
    ./ModelDslCreationIntegrationTest.groovy
Adds more coverage for model validation - simplifies boolean check - changes validation message for non constructable top level model elements - removes some redundant params from ModelTypeInitializationException

+review REVIEW-5652

    • -2
    • +8
    ./ModelDslCreationIntegrationTest.groovy
  1. … 3 more files in changeset.
Merged release branch into master.

    • -1
    • +1
    ./ModelDslCreationIntegrationTest.groovy
  1. … 6 more files in changeset.
Remove test fixture that enables transformed model rules DSL. Not required any more.

    • -5
    • +0
    ./ModelDslCreationIntegrationTest.groovy
  1. … 43 more files in changeset.
Removed speculative conversion of property references in DSL rules closures into input references. Can now only use $('p') expressions to refer to other rule elements as inputs.

    • -49
    • +17
    ./ModelDslCreationIntegrationTest.groovy
  1. … 12 more files in changeset.
Replaces 'node' with 'element'

    • -1
    • +1
    ./ModelDslCreationIntegrationTest.groovy
  1. … 5 more files in changeset.
Treat dynamic property references at the top level of a rule closure in the DSL as an input reference.

    • -2
    • +1
    ./ModelDslCreationIntegrationTest.groovy
  1. … 12 more files in changeset.
Uses a better error message for model types that cannot be constructed

+review REVIEW-5632

    • -1
    • +1
    ./ModelDslCreationIntegrationTest.groovy
  1. … 8 more files in changeset.
Adds a ConstructableTypesRegistry to create types that are not strictly 'managed' - NodeInitializerExtractionStrategy's can be asked what types they support - Fails the build when NodeInitializerRegistry can not find an appropriate node initializer - Removes managed type check ModelDslBacking's

+review REVIEW-5619

    • -1
    • +1
    ./ModelDslCreationIntegrationTest.groovy
  1. … 40 more files in changeset.
Fixes binding error report format tests

+review REVIEW-5556

    • -1
    • +1
    ./ModelDslCreationIntegrationTest.groovy
  1. … 1 more file in changeset.
Fixes file seperator issue

+review REVIEW-5552

    • -1
    • +1
    ./ModelDslCreationIntegrationTest.groovy
  1. … 1 more file in changeset.
Uses OS file separator to fix tests on windows.

+review REVIEW-5552

    • -2
    • +1
    ./ModelDslCreationIntegrationTest.groovy
  1. … 3 more files in changeset.
Model report displays a relative path to the build script for DSL based rules - Moves RelativeFileNameTransformer to core

+review

    • -2
    • +2
    ./ModelDslCreationIntegrationTest.groovy
  1. … 19 more files in changeset.
Apply @Defaults rules before the closure provided to a creator rule in the transformed DSL. Added some test coverage.

    • -1
    • +99
    ./ModelDslCreationIntegrationTest.groovy
  1. … 2 more files in changeset.
Remove some obsolete imports in integration tests.

+review REVIEW-5491

    • -6
    • +0
    ./ModelDslCreationIntegrationTest.groovy
  1. … 41 more files in changeset.
Allow top level, managed, elements to be added to the model graph.

Example:

model {

thing(Thing) {

}

}

Works for both styles of model blocks.

+review

    • -0
    • +121
    ./ModelDslCreationIntegrationTest.groovy
  1. … 27 more files in changeset.