DynamicObjectIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Moved integration test to core.

    • -456
    • +0
    ./DynamicObjectIntegrationTest.groovy
  1. … 1 more file in changeset.
Fixed a couple of integration tests that weren't actually running any build

    • -12
    • +14
    ./DynamicObjectIntegrationTest.groovy
GRADLE-2163 - integration test for convention mapping primitive booleans.

    • -0
    • +23
    ./DynamicObjectIntegrationTest.groovy
Rename ExtensionContainer.addDecorated to .create

  1. … 20 more files in changeset.
Issue a deprecation warning when attempting to create a dynamic property directly on an object.

This has been deprecated in favour of the dynamic properties extension.

project.foo = "bar"

is now:

project.ext.foo = "bar"

    • -14
    • +16
    ./DynamicObjectIntegrationTest.groovy
  1. … 36 more files in changeset.
Add the necessary parts to log a deprecation warning when assigning to a non existent property on a domain object.

The logging of the deprecation warning is commented out for the time being until we finalise the replacement syntax.

At the moment the following works:

project.ext { add "foo", "bar" }

assert project.foo == "bar"

assert project.ext.foo == "bar"

project.ext.add("other") { -> "thing" }

assert project.other() == "thing"

assert project.ext.other() == "thing"

    • -0
    • +23
    ./DynamicObjectIntegrationTest.groovy
  1. … 4 more files in changeset.
Deprecate ExtensionContainer.add(String, Class, Object...) as it's too ambigous with add(String, Object), and added addDecorated(String, Class, Object...)

  1. … 6 more files in changeset.
Add ExtensionContainer.add(String name, Class type, Object... constructionArgs) for adding dynamic extensions.

This method is backed by the class generator and the instantiator, meaning that code like:

project.extensions.add("foo", project.services.get(Instantiator).newInstance(Foo, "bar")

can be replaced with:

project.extensions.add("foo", Foo, "bar")

    • -1
    • +26
    ./DynamicObjectIntegrationTest.groovy
  1. … 9 more files in changeset.
Add ExtensionContainer.add(String name, Class type, Object... constructionArgs) for adding dynamic extensions.

This method is backed by the class generator and the instantiator, meaning that code like:

project.extensions.add("foo", project.services.get(Instantiator).newInstance(Foo, "bar")

can be replaced with:

project.extensions.add("foo", Foo, "bar")

    • -1
    • +26
    ./DynamicObjectIntegrationTest.groovy
  1. … 9 more files in changeset.
Changed class generation to add an overloaded method that accepts a Closure, for each method that accepts an Action. That is, for void someHookPoint(Action<SomeType>), automatically add void someHookPoint(Closure cl).

  1. … 5 more files in changeset.
- Added ExtensionAware which all decorated classes implement. - Fixed AsmBackClassGenerator so that it correctly adds set methods for properties with primitive type, properties from @NoConventionMapping classes, properties with a final getter method, and write-only properties.

  1. … 10 more files in changeset.
Changed our class decoration to mix-in a 'void <propname>(<proptype> v)' method for all mutable single-valued properties. Allows this kind of thing:

jar {

baseName 'b'

}

instead of

jar {

baseName = 'b'

}

    • -0
    • +17
    ./DynamicObjectIntegrationTest.groovy
  1. … 4 more files in changeset.
Added DynamicObjectAware.getExtensions(), so that extensions can be added to any dynamic object.

    • -15
    • +144
    ./DynamicObjectIntegrationTest.groovy
  1. … 8 more files in changeset.
Removed a bunch of "withDeprecationChecksDisabled()" from tests, now that gradle properties does not raise deprecation warnings

  1. … 4 more files in changeset.
Renamed GradleDistributionExecuter.ingoreDeprecationWarnings() -> withDeprecationChecksDisabled()

  1. … 9 more files in changeset.
Turn on deprecation checking for integration tests by default: disabled in a few cases - use GradleDistributionExecuter.ignoreDeprecationWarnings() in cases where warnings are still emitted in tests - Ignore idea.ConfigurationHooksTest.triggersBeforeAndWhenConfigurationHooks, since this test fails due to a bug - A few other tests still failing

  1. … 15 more files in changeset.
GRADLE-1685, GRADLE-1686 - some int test coverage

    • -3
    • +37
    ./DynamicObjectIntegrationTest.groovy
GRADLE-1355 - Move integration tests out of core project and into their own integTest project.

    • -0
    • +192
    ./DynamicObjectIntegrationTest.groovy
  1. … 668 more files in changeset.