plugins

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Ensure plugin collection mutation results in an error

    • -0
    • +68
    ./DefaultPluginContainerTest.groovy
  1. … 2 more files in changeset.
Ensure plugin collection mutation results in an error

    • -0
    • +68
    ./DefaultPluginContainerTest.groovy
  1. … 2 more files in changeset.
Refactor HTTP deprecation logic to use HttpRedirectVerifier

    • -3
    • +7
    ./DefaultObjectConfigurationActionTest.groovy
  1. … 60 more files in changeset.
Remove TextResourceLoader.Factory

    • -7
    • +3
    ./DefaultObjectConfigurationActionTest.groovy
  1. … 32 more files in changeset.
Fix integration tests failing due to new dperication

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

    • -0
    • +4
    ./DefaultObjectConfigurationActionTest.groovy
  1. … 10 more files in changeset.
Fix compilation errors introduced by TextUrlResource.Factory change

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

    • -3
    • +3
    ./DefaultObjectConfigurationActionTest.groovy
  1. … 11 more files in changeset.
Add forgotten parameters to constructors when instantiating

  1. … 1 more file in changeset.
Use the `DomainObjectCollectionFactory` everywhere

  1. … 38 more files in changeset.
Use the `DomainObjectCollectionFactory` everywhere

  1. … 38 more files in changeset.
Deprecate download of resources over HTTP; Require opt-in

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

    • -2
    • +2
    ./DefaultObjectConfigurationActionTest.groovy
  1. … 54 more files in changeset.
Moved a bunch of dynamic object related types from core to live in modelCore.

    • -27
    • +0
    ./DefaultExtraPropertiesExtensionTest.groovy
    • -91
    • +0
    ./ExtraPropertiesDynamicObjectAdapterTest.groovy
  1. … 99 more files in changeset.
Allow the services required by a given class to be queried prior to creating any instances of that class. Use this to allow `ArtifactTransformDependencies` to be injected into artifact transforms using any of the service injection patterns (that is, via a constructor or a getter).

  1. … 125 more files in changeset.
Remove direct usages of `ThreadGlobalInstantiator` from tests, replace with test fixtures.

  1. … 7 more files in changeset.
Replace most direct usages of `DirectInstantiator` with indirect usages via `InstantiatorFactory` or test fixtures instead. This means more consistent behaviour in unit tests because the objects under test will behave more similarly to how they do at runtime. This also allows the decision of how the instantiation should behave to live in as few places as possible, so this can be more easily evolved and contextualized.

  1. … 59 more files in changeset.
Remove some direct usages of `AsmBackedClassGenerator` from tests, and instead use `TestUtil` fixture to take care of setting up a decorating `Instantiator`.

  1. … 17 more files in changeset.
Emit build operations around container callback executions (core and dependencyMgmt containers) (#7734)

* Decorate taskcontainer callbacks to track application id

* Decorate plugin container callbacks

* Decorate repositoryContainer callbacks

* Decoreate configurations and configuration.dependencies container callbacks

* Decorate artifactTypesDecorator callbacks

* Dont emit build ops for internal declared callbacks

* Provide usercode context in beforeResolve / afterResolve callbacks

* keep compatibility for nebula.dependency-recommender plugin

* Put domain collection callback build ops behind feature toggle

* Decorate Provider.configure() methods

* Simplify container callback filtering and decoration

Previously, we had three classes collaborating to achieve this but now this is inlined into effectively one. While this creates a more complex implementation, that is still rather simple, it avoids the more problematic complexity of a complicated relationship between the three implementations that also required extra state and details to be propagated through all of the collections.

  1. … 69 more files in changeset.
Remove DeferredConfigurable

Remove the annotation that configured extensions to be evaluated lazily.

Resolves #6276.

  1. … 6 more files in changeset.
Remove DeferredConfigurable

Remove the annotation that configured extensions to be evaluated lazily.

Resolves #6276.

  1. … 6 more files in changeset.
Rationalise method names

  1. … 12 more files in changeset.
Fix unit test

Track listeners registered by plugins

  1. … 6 more files in changeset.
Prefer first non-synthetic extension public type

when inferring the public type

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 1 more file in changeset.
Throw UnknownDomainObjectException when extension isn't found

Getting a NullPointerException is unhelpful when you forget to add

a plugin to a project and try to configure an extension.

Before, you would have gotten an exception similar to this:

Caused by: java.lang.NullPointerException

at org.gradle.api.internal.plugins.ExtensionsStorage.configureExtension(ExtensionsStorage.java:67)

at org.gradle.api.internal.plugins.DefaultConvention.configure(DefaultConvention.java:222)

at org.gradle.kotlin.dsl.AccessorsKt.spotless(accessors.kt:63)

  1. … 2 more files in changeset.
Track applied plugins only once

We were tracking plugins both in the plugin

manager as well as in the plugin container.

The container was behaving like any other of

our domain object containers, which is not quite

right, because users cannot add/remove plugins

manually. It now forbids these operations and

uses the store from the plugin manager directly

instead of keeping another copy of it in memory.

    • -22
    • +12
    ./DefaultPluginContainerTest.groovy
  1. … 5 more files in changeset.
Let extensions schema expose deferred configurable extensions

by deprecating existing accessor method and adding a new one

by modeling the schema as a type that can evolve on its own

  1. … 5 more files in changeset.
Introduce ScriptApplicator service

As the right home for the build operation related to script

application.

    • -28
    • +20
    ./DefaultObjectConfigurationActionTest.groovy
  1. … 19 more files in changeset.
Extract :core-api project (#2719)

  1. … 785 more files in changeset.
Introduce TextResourceLoader service

- Can create a TextResource for File or URI

- Used when loading files for `apply from:`

    • -99
    • +101
    ./DefaultObjectConfigurationActionTest.groovy
  1. … 24 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.

  1. … 64 more files in changeset.
Identify the target of scripts/plugins to build scans.

  1. … 26 more files in changeset.