AbstractSpockTaskTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Do not run the constructors of tasks that are deserialized from the instant execution cache.

  1. … 22 more files in changeset.
Do not run the constructors of tasks that are deserialized from the instant execution cache.

  1. … 22 more files in changeset.
Do not run the constructors of tasks that are deserialized from the instant execution cache.

  1. … 22 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.
Calculate cache key where we need it

  1. … 8 more files in changeset.
Remove pointless decoration from `TaskFactory` as the instantiation takes care of this.

  1. … 7 more files in changeset.
Change the task class metadata store into a global service backed by the cross-build in-memory cache infrastructure.

Previously this was a build scoped service, meaning that each task class was inspected once per build in a build tree on each Gradle invocation. Now, each task class is inspected once per build process.

  1. … 7 more files in changeset.
Separate `ITaskFactory` from `NamedEntityInstantiator<Task>` so that the instantiator is applied as a decoration over the factory.

  1. … 37 more files in changeset.
Remove Task.dependsOnTaskDidWork()

#6265

  1. … 3 more files in changeset.
Remove TaskInternal.execute

#6265

  1. … 5 more files in changeset.
Remove Task.deleteAllActions

  1. … 6 more files in changeset.
Stop using atomic types in non-thread-safe contexts (#5813)

- Replace AtomicReference with MutableReference

- Replace AtomicBoolean with MutableBoolean

  1. … 17 more files in changeset.
Implement `IsolatableTask`

  1. … 9 more files in changeset.
Allow creation of Task with constructor arguments (#4809)

* Allow creation of Task with constructor arguments

Rough spike on exposing constructor arguments in Task creation DSL

Fixed codestyle failure

Fixed binary compatibility failure

Fixed docs checkstyle on Task.TASK_PARAMS

Fixed infinite recursion

Fixed "broken" tests

Rename TASK_PARAMS to TASK_CONSTRUCTOR_ARGS

Add TaskContainer.create(String, Class<>, Object...)

Add better description to TaskContainer.create(String, Class, Object...)

Add @since & @Incubating to TaskContainer.create(String, Class, Object...)

Ignore some tests of DependencyInjectingInstantiator whose output *should* change

Fix tests in DefaultTaskContainerTest

Avoid explicit cast of DirectInstantiator.INSTANCE to DirectInstantiator

Back out addition of NamedEntityInstantiator.create(String, Class, Object...)

Fix omitting constructorArgs from previous cleanup

Revert DefaultTaskCollection.create(String, Class) to use instantiator

Revert optimize import

Fail if constructorArgs is not a List<> or Object[]

Remove handling of non-@Inject constructor with constructor args

Revert DependencyInjectingInstantiatorTest

Move TaskInternal logic from DefaultTaskContainer to TaskFactory

Make ITaskFactory extend NamedEntityInstantiator again

* Fix AnnotationProcessingTaskFactory.create(String, Class) double-processing

* Update DefaultTaskContainerTest to use ITaskFactory.createTask() for some mocks

* Reduce size of ITaskFactory interface

* Add DefaultTaskContainer.createTask() to avoid adding task multiple times

* Fix test failures related to removing ITaskFactory.createTask(Map)

* Optimize imports

* Optimize imports

* Fix test failures related to removing ITaskFactory.createTask(Map)

* Add tests for Task constructor arguments in Groovy build script

* Add tests for Task constructor arguments in Java plugin via API

* Add tests for Task constructor arguments in Kotlin build script

* Add tests that check for constructorArgs being List or Object[]

  1. … 14 more files in changeset.
Support rich task inputs (#3720)

@Nested inputs are now discovered based on the runtime type instead of the static type.

  1. … 150 more files in changeset.
Remove usage of Task.execute from tests

  1. … 29 more files in changeset.
Adjust test to task action naming change

Register custom task property annotation handlers

This way plugins can register their own custom annotation handlers.

+review REVIEW-6241

  1. … 10 more files in changeset.
Remove deprecated methods on TestUtil (#672)

In order to use project builder correctly without having

leaking files on windows it is necessary to initialize

the test fixture for NativeServices and clean up

the test directory after building.

AbstractProjectBuilderSpec provides a nice base class

for Groovy tests.

I removed the deprecated methods since using them leads

to files lying around. Migrating all the usages to the "new"

way ensures it is used correctly.

  1. … 97 more files in changeset.
Changed unit tests to use Project or ProjectInternal instead of the implementation classes.

  1. … 32 more files in changeset.
Extracted runtime task property annotation

Also introduced keeping track of non-annotated properties, and added

some unit tests for the task class info creation itself.

These extracted classes can be used from a task validator task later on.

+review REVIEW-5989

  1. … 23 more files in changeset.
Revert "Extracted runtime task property annotation validation"

This reverts commit 1c3f5e3fafe4745c062a183796463545f73b5d16.

  1. … 22 more files in changeset.
Extracted runtime task property annotation validation

Also introduced keeping track of non-annotated properties, and added

some unit tests for the task class info creation itself.

These extracted classes can be used from a task validator task later on.

+review REVIEW-5989

  1. … 22 more files in changeset.
Improve AbstractSpockTaskTest directory names.

- Now tests will run in temporary directories named after the actual

test running instead of the abstract base class.

  1. … 2 more files in changeset.
Make DirectInstantiator a singleton.

  1. … 89 more files in changeset.
AbstractTask.setActions has no effect due to scoping

  1. … 1 more file in changeset.
Fix for broken unit tests.

Bust up Matchers to detangle the project dependencies.

Also solves some building in IDEA issues.

  1. … 29 more files in changeset.
Moved some internal classes out of org.gradle.api.internal to live under org.gradle.internal

  1. … 91 more files in changeset.
renamed HelperUtil to TestUtil (REVIEW-1626)

  1. … 145 more files in changeset.