InstantExecutionHost.kt

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Load system properties for instant execution

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

Load system properties for instant execution

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

Merge branch 'release'

  1. … 2 more files in changeset.
Make paths/names of included builds immutable (#10998)

Changes the “build path” for included builds to be determined at inclusion time based on the directory name, or a user supplied override. Previously, we tried to use the root project name defined in the included build. This caused a lot of complexity due to it not being known until part way through building the included build.

This change also disallows use of `buildSrc` as a project name, as it collides with the `buildSrc` nested build.

  1. … 72 more files in changeset.
Disallow builds defining a project at :buildSrc

This is already prohibited by the composite build machinery if there is

also a real buildSrc project. This change makes the failure earlier and

more obvious.

  1. … 8 more files in changeset.
Also get Instant Execution system properties directly

if not in startParameter

This is temporary adding on top of the temporary way to enable

instant execution in order to be able to configure an IDE to always

use instant execution easily.

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

Build buildSrc after applying the settings file (#10305)

Fixes #9094 and #5333

  1. … 54 more files in changeset.
Try again to correct the classloader structure for projects

  1. … 6 more files in changeset.
Move baseProjectClassLoaderScope from Settings to Gradle

  1. … 14 more files in changeset.
Merge remote-tracking branch 'origin/master' into ldaley/settings-before-buildsrc

# Conflicts:

# subprojects/core/src/integTest/groovy/org/gradle/initialization/buildsrc/BuildSrcDeprecatedInSettingsIntegrationTest.groovy

# subprojects/core/src/main/java/org/gradle/api/internal/initialization/DefaultDeprecatedClassLoader.java

# subprojects/core/src/main/java/org/gradle/api/internal/initialization/DeprecatedClassLoaderScope.java

  1. … 6 more files in changeset.
Fix previous commit.

  1. … 7 more files in changeset.
Record the ClassLoader associated with each class that is serialized to the instant execution cache, and use this to make class lookup on deserialize faster and to deal correctly with multiple classes with the same name.

Move some ClassLoader lifecycling from Groovy DSL script compilation to `ClassLoaderScope`, so that the scope takes care of creating and caching the script ClassLoader.

  1. … 30 more files in changeset.
Record the ClassLoader associated with each class that is serialized to the instant execution cache, and use this to make class lookup on deserialize faster and to deal correctly with multiple classes with the same name.

Move some ClassLoader lifecycling from Groovy DSL script compilation to `ClassLoaderScope`, so that the scope takes care of creating and caching the script ClassLoader.

  1. … 30 more files in changeset.
Rename method to not be a getter, to avoid being accidentally invoked

  1. … 3 more files in changeset.
Attach the buildSrc export scope to settings

This is the minimal change required to make Kotlin DSL IDE integration

work. When getting a script's classpath fails, we fall back to this

classpath.

  1. … 10 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.
Some simplifications of the instant execution types that take care of serializing the work nodes.

  1. … 7 more files in changeset.
Some simplifications of the instant execution types that take care of serializing the work nodes.

  1. … 7 more files in changeset.
Some simplifications of the instant execution types that take care of serializing the work nodes.

  1. … 7 more files in changeset.
Some simplifications of the instant execution types that take care of serializing the work nodes.

  1. … 7 more files in changeset.
Some simplifications of the instant execution types that take care of serializing the work nodes.

  1. … 7 more files in changeset.
Some simplifications of the instant execution types that take care of serializing the work nodes.

  1. … 7 more files in changeset.
Some simplifications of the instant execution types that take care of serializing the work nodes.

  1. … 7 more files in changeset.
Change instant execution serialization to write the edges between work nodes to the cache, instead of the dependencies between tasks.

This will allow nodes other than tasks to be deserialized and added back to the work graph. Also short-circuit the node dependency calculation when reading nodes back from the cache, as the calculation has already been done.

  1. … 5 more files in changeset.
Change instant execution serialization to write the edges between work nodes to the cache, instead of the dependencies between tasks.

This will allow nodes other than tasks to be deserialized and added back to the work graph. Also short-circuit the node dependency calculation when reading nodes back from the cache, as the calculation has already been done.

  1. … 5 more files in changeset.
Change instant execution serialization to write the edges between work nodes to the cache, instead of the dependencies between tasks.

This will allow nodes other than tasks to be deserialized and added back to the work graph. Also short-circuit the node dependency calculation when reading nodes back from the cache, as the calculation has already been done.

  1. … 5 more files in changeset.
Change instant execution to serialize all work nodes to the cache, rather than just the task nodes.

In this change, only a placeholder is written to the cache for node that are not task nodes, and this are discarded on read.

  1. … 10 more files in changeset.
Change instant execution to serialize all work nodes to the cache, rather than just the task nodes.

In this change, only a placeholder is written to the cache for node that are not task nodes, and this are discarded on read.

  1. … 10 more files in changeset.
Change instant execution to serialize all work nodes to the cache, rather than just the task nodes.

In this change, only a placeholder is written to the cache for node that are not task nodes, and this are discarded on read.

  1. … 9 more files in changeset.
Revert "Reinstate "Let instant execution reuse classloaders when loading""

  1. … 36 more files in changeset.