SettingsFactoryTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Build buildSrc after applying the settings file (#10305)

Fixes #9094 and #5333

  1. … 54 more files in changeset.
Build buildSrc after applying the settings file

This allows the build cache settings to implicitly apply to buildSrc,

whereas before the configuration had to be duplicated there.

  1. … 30 more files in changeset.
Fix test after merge gone wrong

Merge branch 'master' into eskatos/ie/spike-reuse-classloaders

  1. … 4 more files in changeset.
Deprecating buildSrc usage in settings (#9898)

* Fix sanityCheck

* Handle deprecated use of resources from buildSrc in settings

* Address some feedback from PR review

* Simplify deprecation warning

* ensure only fired once for performance reasons

* tweak test coverage

* add proper test coverage

* use simplified deprecation warning

* ensure works with kotlin-ds;

* Fix caching of deprecated classloader

* use uniqye identifier and avoid same identifier as non deprecated loader

* fix more tests now expecting deprecation warning

* Make DeprecatedClassloader closeable

* Mention deprecation in upgrade guide

  1. … 23 more files in changeset.
Move from a recording decorator to a listener

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

  1. … 14 more files in changeset.
Move from a recording decorator to a listener

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

  1. … 14 more files in changeset.
Some more work heading from spike to actual implementation

- test coverage

- simplified deprecation warning

- works with kotlin-dsl;

  1. … 8 more files in changeset.
Defer service lookups until they are required when creating a decorated object instance.

  1. … 10 more files in changeset.
Defer service lookups until they are required when creating a decorated object instance.

  1. … 10 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. … 127 more files in changeset.
Remove direct usages of `ThreadGlobalInstantiator` from tests, replace with test fixtures.

  1. … 9 more files in changeset.
Expose Settings's buildscript

  1. … 6 more files in changeset.
Remove unused import

Introduce ScriptApplicator service

As the right home for the build operation related to script

application.

  1. … 19 more files in changeset.
Changed plugin registry so that it queries its parent when inspecting a type before attempting to inspect the type itself. Previously, every registry was inspecting each type, which is practice means that no caching was actually being done.

Also changed DefaultPluginRegistry so that it is always backed by a ClassLoaderScope. Changed the root ClassLoaderScope so that its local ClassLoader is the core plugins ClassLoader.

  1. … 13 more files in changeset.
Centralise detection/handling of different types of plugins.

+review REVIEW-5214

  1. … 63 more files in changeset.
classloader caching - avoid exposing DefaultClassLoaderCache impl

Some steps to avoid exposing DefaultClassLoaderCache impl to bunch of tests.

+review REVIEW-5219

  1. … 5 more files in changeset.
classloader caching - moved classes to better package

+review REVIEW-5219

  1. … 22 more files in changeset.
Reuse classloaders where possible.

  1. … 11 more files in changeset.
Introduce ClassLoaderScope.

Attempts to model the class loader relationships more explicitly, and encapsulate class loader creation. It also allows lazy classloader creation (in a more obvious way than before) which allows short circuiting in the classloader hierarchy.

    • -0
    • +75
    ./SettingsFactoryTest.groovy
  1. … 80 more files in changeset.