plugins

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fixed some minor javadoc issues.

  1. … 1 more file in changeset.
Remove PluginContainer.allPlugins() and TaskContainer.allTasks()

  1. … 3 more files in changeset.
Some work on the ExtensionAware javadoc.

Rename ExtensionContainer.addDecorated to .create

  1. … 19 more files in changeset.
Rename DynamicPropertiesExtension to ExtraPropertiesExtension.

    • -186
    • +0
    ./DynamicPropertiesExtension.java
    • -0
    • +186
    ./ExtraPropertiesExtension.java
  1. … 19 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"

  1. … 36 more files in changeset.
Improvements to the DynamicPropertiesExtension docs.

    • -13
    • +59
    ./DynamicPropertiesExtension.java
Rename DynamicExtension to DynamicPropertiesExtension.

    • -0
    • +130
    ./DynamicPropertiesExtension.java
  1. … 17 more files in changeset.
Made the dynamic extension an implicit facet of all extension containers.

Previously, it was managed by ExtensibleDynamicObject. This makes it more obvious in the documentation, among other benefits.

  1. … 4 more files in changeset.
Some work on the DynamicExtension doc, and added to the dsl ref.

  1. … 2 more files in changeset.
Remove DynamicExtension.add() and don't throw an exception when trying to assign to a property for the first time.

  1. … 7 more files in changeset.
Move dynamic extension stuff into the “plugins” namespace.

    • -0
    • +96
    ./DynamicExtension.java
  1. … 16 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. … 5 more files in changeset.
Changed javadoc example to add an extension using the class generator backed way, and to show nested extensions.

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. … 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. … 9 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.

    • -0
    • +50
    ./ExtensionAware.java
  1. … 9 more files in changeset.
- Changed DefaultConvention to separate the properties and methods contributed to the target object (eg project) from the dynamic properties and methods on the DefaultConvention object itself. Now, only extensions are visible on the DefaultConvention object, as write-once properties. - Convention no longer extends DynamicObject. - Extensions cannot be replaced. - Removed DynamicObjectAware.setConvention().

  1. … 15 more files in changeset.
Added DynamicObjectAware.getExtensions(), so that extensions can be added to any dynamic object.

  1. … 8 more files in changeset.
Made DomainObjectCollection and implementation of java.util.Collection.

  1. … 65 more files in changeset.
GRADLE-1641 Made it possible to find/get extensions. Very useful if one develops plugin in java and wants to access extension instances.

  1. … 3 more files in changeset.
Added a TODO

Added a TODO

Got rid of the javadoc warning

Added basic support for DSL extensions for gradle projects. They work slightly differently then the convention plugins. DSL extensions are namespaced which means they have to be qualified by the extension name. This avoids property/method name clashes. See the examples of usage of the ExtensionContainer in our plugins to get the picture.

    • -0
    • +37
    ./ExtensionContainer.java
  1. … 5 more files in changeset.
GRADLE-1248 - Added DomainObjectContainer.all() as replacements for allObjects(). - Method all(Closure cl) treats the closure as a configuration closure. - Deprecated allObjects(), TaskCollection.allTasks() and PluginCollection.allPlugins().

  1. … 22 more files in changeset.
Renamed subprojects/gradle-(.+) to subprojects/$1

    • -0
    • +62
    ./ObjectConfigurationAction.java
    • -0
    • +78
    ./PluginCollection.java
    • -0
    • +113
    ./PluginContainer.java
    • -0
    • +33
    ./PluginInstantiationException.java
    • -0
    • +29
    ./UnknownPluginException.java
  1. … 6172 more files in changeset.