plugins

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Moved some internal classes out of org.gradle.api.internal to live under org.gradle.internal

  1. … 91 more files in changeset.
Remove @author tags and names from source code.

- Added checkstyle check for @author

- Added not to CONTRIBUTING.md saying that we don't use names in the codebase

  1. … 1209 more files in changeset.
GRADLE-2066: Extract PluginAware interface out of Project.

  1. … 4 more files in changeset.
REVIEW-1762: Move ExtensionContainer.getAsMap() onto an internal protocol interface

  1. … 7 more files in changeset.
REVIEW-1738: Ensure that all DeferredConfigurable extensions are configured (late) during project evaluation - Added a ProjectEvaluator that gets/configures all DeferredConfigurable extensions after the main project evaluation - Added ExtensionContainer.getAsMap() to make this easy (configure-on-access) - Wrap deferred configuration exceptions in GradleScriptException so that there's no difference between failure during regular script evaluation and deferred configuration.

  1. … 8 more files in changeset.
Use @Inherited so that @DeferredConfigurable annotation works as hoped

  1. … 1 more file in changeset.
Switched DeferredConfigurable to be an Annotation rather than and interface

  1. … 4 more files in changeset.
Added DeferredConfigurable interface for implementing extensions that don't want to handle inputs that change after configuration - extensions implementing interface will have: - all configuration actions deferred until first access to extension - no configuration actions allowed after configured on first access

    • -0
    • +41
    ./DeferredConfigurable.java
  1. … 3 more files in changeset.
docs: replace incorrect usages of "as for" with "as per"

These two phrases are commonly confused. According to dictionary.com and m-w.com, proper usages are:

as for: with respect to; in reference to: <As for staying away, I wouldn't think of it.>

as for: with regard to: concerning: <as for the others, they'll arrive later>; <as for the others, let them get their own dinner>

as per: according to: <as per specifications>

as per: in accordance with: according to <as per your instructions>

The common usage in Gradle JavaDocs is of the form "<some parameter> is evaluated as for <some method reference>", which should instead be "as per". Almost all instances of "as for" in the codebase are of this form. There are, however, a few instances that are legitimate usages of "as for". Those instances have not been changed.

  1. … 27 more files in changeset.
typo

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.