Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Allow applying plugins to subprojects using new DSL

This change adds new `subprojects` and `allprojects` methods to the `plugins`

DSL, which allow users to apply plugins to multiple subprojects at once.

The plugins are resolved in the context of the parent project and put on

the parent's classpath. This ensures that the parent can cross-configure its

children. A side-effect is that unrelated subprojects will see those plugin

classes too, even though they are not applied to them.

The `plugins` block is no longer backed by an AST transformation, but is

now compiled, exactly like the `buildscript` and `pluginRepositories` blocks.

This will give users greater flexibility to conditionally apply plugins in the

future. Currently no access is granted to any methods outside of the `plugins`

API though.

    • -79
    • +0
    ./internal/PluginRequestCollectorTest.groovy
    • -48
    • +0
    ./internal/PluginRequestsSerializerTest.groovy
    • -0
    • +68
    ./internal/ProjectPluginRequestCollectorTest.groovy
  1. … 36 more files in changeset.
Renamed package o.g.messaging.serialize to o.g.internal.serialize.

    • -1
    • +1
    ./internal/PluginRequestsSerializerTest.groovy
  1. … 171 more files in changeset.
Extract plugin request from the new plugins DSL at compile time instead of runtime

+review REVIEW-5395

    • -79
    • +0
    ./internal/PluginDependenciesServiceTest.groovy
    • -0
    • +79
    ./internal/PluginRequestCollectorTest.groovy
  1. … 14 more files in changeset.
Add PluginRequests types and a serializer for it

+review REVIEW-5395

    • -0
    • +48
    ./internal/PluginRequestsSerializerTest.groovy
  1. … 6 more files in changeset.
Move duplicate plugin declaration detection out of DefaultScriptPluginFactory.

+review REVIEW-5154

    • -0
    • +79
    ./internal/PluginDependenciesServiceTest.groovy
  1. … 5 more files in changeset.
REVIEW-4921 - add PluginId type.

Also addresses REVIEW-4918.

  1. … 15 more files in changeset.
REVIEW-4952 - move test.

    • -0
    • +52
    ./internal/PluginIdsTest.groovy
  1. … 1 more file in changeset.