Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Align no isolation worker with isolated workers

  1. … 17 more files in changeset.
Fix some lgtm alerts

  1. … 11 more files in changeset.
Make file operations in worker daemons relative to project directory

  1. … 20 more files in changeset.
Compiler daemons can access internal services

  1. … 19 more files in changeset.
Remove AbstractCompile.compile()

The method is not useful, and incremental compiler tasks were only throwing a UnsupportedOperationException anyway.

This shouldn't break any implementing task during runtime. Compilation would break but can be fixed easily by removing the `@Override` annotation.

  1. … 4 more files in changeset.
Rename WorkerExecution to WorkAction, WorkerParameters to WorkParameters

  1. … 37 more files in changeset.
Use a convenience method for loading class

Move compiler parameters into compiler implementation classes

  1. … 5 more files in changeset.
Follow-ups of incremental Groovy compilation (#9848)

This PR:

- Closes https://github.com/gradle/gradle/issues/9785 and https://github.com/gradle/gradle/issues/9380

- Adds tests for

- Multiple classes in a same source Groovy file.

- Moving files between source set roots

Previously, removing a source directory from a source set would break the Java (and Groovy) incremental compiler (https://github.com/gradle/gradle/issues/9380). This PR detects this case and runs a full recompilation.

It also records relative path instead of absolute path in Groovy incremental compilation to make it build-cache-friendly.

  1. … 26 more files in changeset.
Change compiler daemons to use typed parameter api

  1. … 2 more files in changeset.
Introduce typed parameter API for workers

  1. … 28 more files in changeset.
Use isolated parameters for all worker isolation modes

  1. … 44 more files in changeset.
Simplify the ActionExecutionSpec class hierarchy

  1. … 10 more files in changeset.
Change compilers to just send raw objects across

  1. … 7 more files in changeset.
Simplify daemon groovy compiler classpath filter

  1. … 3 more files in changeset.
Pass compiler classes and instantiate them in the worker

  1. … 25 more files in changeset.
Provide a basic service registry for worker injection

This allows us to pull some of the service stuff out of the Zinc

compiler and use the services of the process rather than constructing

its own service hierarchy. This also positions us to provide

meaningful public services to workers in the future.

  1. … 12 more files in changeset.
Introduce an internal factory to create `JavaForkOptions`, to encapsulate the service(s) needed to create instances of this type and decouple clients from this detail. This could/should move to `ObjectFactory` or some other public factory type.

  1. … 43 more files in changeset.
Split methods required in Worker

  1. … 18 more files in changeset.
Move some internal types back to their original package.

  1. … 75 more files in changeset.
Moved a bunch of dynamic object related types from core to live in modelCore.

  1. … 104 more files in changeset.
Don't attempt to change a worker's working dir

Since Java 11 no longer supports changing the working directory of a

running process, a worker's working dir is now always

`GRADLE_USER_HOME/workers`.

Setting the working directory of a worker via the fork options of

`WorkerConfiguration` is now prohibited.

Resolves #7323.

  1. … 26 more files in changeset.
Remove JvmLanguageCompileSpec.{source,classpath}

Use PathToFileResolver where possible (#5805)

  1. … 41 more files in changeset.
Resolve source files later

The cleaning compiler may still remove some of the source files for

some configurations, so we may pass non-existing files to the compiler

which causes the compilation to fail.

See https://github.com/gradle/gradle/issues/5448.

  1. … 8 more files in changeset.
Fix some usages or spec.sourceFiles.asTree

  1. … 1 more file in changeset.
Dogfood ImmutableFileCollection on production code (#4988)

This reverts commit 13eaebc2b1244511dcbff4c59cd41253e3b69642.

  1. … 87 more files in changeset.
Revert "Dogfood ImmutableFileCollection on production code (#4988)"

This reverts commit 834632674ca29b6fd190857947338b2b54a9bb62.

The commit caused a bug in incremental compilation, causing changes

to go undetected.

  1. … 87 more files in changeset.
Dogfood ImmutableFileCollection on production code (#4988)

Use ImmutableFileCollection in production code

  1. … 87 more files in changeset.
Allow worker actions to return a custom result

This will be necessary to transferm annotation

processing information from the compiler worker

back to the main daemon. The Compiler API already

returns a WorkResult, but until now this result

was discarded and a standard result instance

was returned instead.

This change allows worker actions to implement

Callable<WorkResult> and lets the compiler daemons

make use of this. In subsequent changes the compiler

will use a custom subclass that exposes more information.

This change does not affect the public WorkerExecutor API.

  1. … 3 more files in changeset.