ArtifactRepositoryPluginResolverTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Revert "Rename `VersionSelector` to `VersionMatcher`"

This reverts commit 5046159bfc739c3d86c59411dd4b4a1c36786b81. The Nebula resolution rules plugin makes use of internal classes,

and broke with this refactoring.

    • -3
    • +3
    ./ArtifactRepositoryPluginResolverTest.groovy
  1. … 67 more files in changeset.
Rename `VersionSelector` to `VersionMatcher`

This refactor is introduced to reduce confusion: the selector corresponds to

the requested version, which can be an exact version number, a range, or

anything else. The matchers, on the other hand, match a selector. In other

words, the selector is a specification, while the matcher does the actual

work of matching.

    • -3
    • +3
    ./ArtifactRepositoryPluginResolverTest.groovy
  1. … 69 more files in changeset.
Allow script plugins to be applied via the plugins DSL

Remote URLs are also supported:

```

plugins {

script "path/to/other.gradle"

script "https://example.com/another.gradle"

}

```

Local file paths are expressed as relative from the requesting script.

Constrain plugins {} block api to distinguish binary and script

plugin requests by both strongly modeled types and ad-hoc groovy parsing

of the plugins block. This pave the way for proper support of the

plugins {} block with the Gradle Kotlin DSL.

Implement ScriptPlugin PluginResolver by generating a synthetic

"imperative" Plugin class that loads and applies the script plugin when

applied.

This synthetic generated loader class and the script plugins are loaded

into the buildSrc classloader scope.

Only Project targets are supported.

`apply false` is not supported.

    • -3
    • +4
    ./ArtifactRepositoryPluginResolverTest.groovy
  1. … 64 more files in changeset.
Rename to xxxInternal convention

    • -2
    • +2
    ./ArtifactRepositoryPluginResolverTest.groovy
  1. … 40 more files in changeset.
Polish pluginManagement DSL

    • -2
    • +2
    ./ArtifactRepositoryPluginResolverTest.groovy
  1. … 104 more files in changeset.
Revert "Revert changes for custom plugin portal"

This reverts commit 2288791711e1f2e8edbc5af11c9348d48038f79e.

    • -2
    • +2
    ./ArtifactRepositoryPluginResolverTest.groovy
  1. … 75 more files in changeset.
Revert changes for custom plugin portal

Revert 634e8884b8c8af88de7b45400d9448dcfb7687cf - add plugin resolution improvements to release notes

Revert 7164418390ebfa366eac77a8064d94ab386b7857 - Make pluginRepositories available in init scripts

reverts commit a1f3919be2d8b18e70c9777ba768b95272a08d1c.

reverts commit e996ec71a78dfd88d43f0e9bf589ca8b29c3160c.

reverts commit 02ae8d7131ed123238eb3a6dd200dfc8e8b360f7.

reverts commit 72f57e195af6e677316252f59965c17e889bb6bf.

reverts commit 9dcc63dad116b55cb860c89e3d749d58c787fbbe.

Revert e0b7a1c9febf72f8ca8a00a9e7f68089b3cda9ce - Tests and bug fixes for custom plugin portal

reverts commit e8805c1616912322e5441016e38329e11af3ca63.

reverts commit 20b815f768dea7f3bca48664233d13174d2e0f60.

Revert 0ae9da185d0df9b5831dce48eca21118d1fac5d7 - Move PluginId to interface

Revert 52c8306d872778404cbbd117bc2214da9f76e0c1 - Public interface changes for custom plugin portal

reverts commit 27ec8f7e535778f4fbb93df09937b027ac1ca488.

Revert 1b3f52920d8bf82be470d1aa972af21af5902f32 for custom plugin portal

Revert 71d6282cecba8ac5becad3f13f29f122212c0ff2 for custom plugin portal

reverts commit 500f9a90ea1775f4b5fe02fa9122750a10e90a5c.

Revert fa2963120a9d84bc156cb7418339ffccc2f88629 for custom plugin portal

Revert 7141b00cd487e265b08aaef364477870ccb38655 for custom plugin portal

    • -2
    • +2
    ./ArtifactRepositoryPluginResolverTest.groovy
  1. … 76 more files in changeset.
Refactored names of classes, and finished up api

- Moved PluginRequest to InternalPluginRequest

- Created PluginRequest that InternalPluginRequest extends

- Made the code compile for RuleBasedPluginRepository

    • -2
    • +2
    ./ArtifactRepositoryPluginResolverTest.groovy
  1. … 49 more files in changeset.
Refactored names of classes, and finished up api

- Moved PluginRequest to InternalPluginRequest

- Created PluginRequest that InternalPluginRequest extends

- Made the code compile for RuleBasedPluginRepository

    • -2
    • +2
    ./ArtifactRepositoryPluginResolverTest.groovy
  1. … 49 more files in changeset.
Revert "Temporarily reverting everything since 810f052813ea0835dc7e9d3eb87bca005815db64 for 3.0-milestone-1 release"

This reverts commit 506f8ce9d6dc1a81e8ff10575c512778ca2f382a.

    • -1
    • +1
    ./ArtifactRepositoryPluginResolverTest.groovy
  1. … 199 more files in changeset.
Temporarily reverting everything since 810f052813ea0835dc7e9d3eb87bca005815db64 for 3.0-milestone-1 release

    • -1
    • +1
    ./ArtifactRepositoryPluginResolverTest.groovy
  1. … 199 more files in changeset.
Add `apply false` option to `plugins` block

This solves two use cases at once:

- only using some classes from a plugin without applying it

- applying a plugin to sub-projects without applying it to the root project

    • -1
    • +1
    ./ArtifactRepositoryPluginResolverTest.groovy
  1. … 18 more files in changeset.
Revert plugins.subprojects syntax, as we are considering another solution

    • -2
    • +2
    ./ArtifactRepositoryPluginResolverTest.groovy
  1. … 37 more files in changeset.
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.

    • -2
    • +2
    ./ArtifactRepositoryPluginResolverTest.groovy
  1. … 38 more files in changeset.
Give plugin artifact repositories more unique names

    • -5
    • +1
    ./ArtifactRepositoryPluginResolverTest.groovy
  1. … 2 more files in changeset.
Allow multiple plugin repositories

    • -0
    • +63
    ./ArtifactRepositoryPluginResolverTest.groovy
  1. … 13 more files in changeset.