ResidualProgramCompiler.kt

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix for previous commit.

  1. … 9 more files in changeset.
Fix for previous commit.

  1. … 9 more files in changeset.
Fix `ClassNotFoundExeception` when loading objects whose class is defined in a build script from the instant execution cache, after recreating the cache from a daemon process that has previously successfully used the cache.

For example, running `gradle taskA`, `gradle taskA`, `gradle taskB`, `gradle taskB` would fail if `taskB` uses types from a build script.

This was happening because the script ClassLoaders are cached and reused, but the association between ClassLoader and scope was lost, and this association is what instant execution uses to know how to load the class.

This change fixes one case of this problem, but the same problem can still happen if the set of build scripts being referenced changes.

  1. … 25 more files in changeset.
Fix `ClassNotFoundExeception` when loading objects whose class is defined in a build script from the instant execution cache, after recreating the cache from a daemon process that has previously successfully used the cache.

For example, running `gradle taskA`, `gradle taskA`, `gradle taskB`, `gradle taskB` would fail if `taskB` uses types from a build script.

This was happening because the script ClassLoaders are cached and reused, but the association between ClassLoader and scope was lost, and this association is what instant execution uses to know how to load the class.

This change fixes one case of this problem, but the same problem can still happen if the set of build scripts being referenced changes.

  1. … 21 more files in changeset.
Fix `ClassNotFoundExeception` when loading objects whose class is defined in a build script from the instant execution cache, after recreating the cache from a daemon process that has previously successfully used the cache.

For example, running `gradle taskA`, `gradle taskA`, `gradle taskB`, `gradle taskB` would fail if `taskB` uses types from a build script.

This was happening because the script ClassLoaders are cached and reused, but the association between ClassLoader and scope was lost, and this association is what instant execution uses to know how to load the class.

This change fixes one case of this problem, but the same problem can still happen if the set of build scripts being referenced changes.

  1. … 25 more files in changeset.
Fix `ClassNotFoundExeception` when loading objects whose class is defined in a build script from the instant execution cache, after recreating the cache from a daemon process that has previously successfully used the cache.

For example, running `gradle taskA`, `gradle taskA`, `gradle taskB`, `gradle taskB` would fail if `taskB` uses types from a build script.

This was happening because the script ClassLoaders are cached and reused, but the association between ClassLoader and scope was lost, and this association is what instant execution uses to know how to load the class.

This change fixes one case of this problem, but the same problem can still happen if the set of build scripts being referenced changes.

  1. … 21 more files in changeset.
Integrate with Gradle Enterprise plugin 3.0 (#11041)

  1. … 52 more files in changeset.
Update scan support for Gradle Enterprise plugin 3.0

Gradle 6 is now only compatible with this plugin.

  1. … 35 more files in changeset.
Polish `ResidualProgramCompiler`

- Add message to TODO exception

- Reduce member visibility

Let `pluginManagement` Kotlin script template have an implicit `Settings` receiver

  1. … 3 more files in changeset.
Merge branch 'release' into bamboo/kotlin-dsl/implicit-receivers

  1. … 4 more files in changeset.
Update outdated comments

Minor formatting changes in kotlin sources

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

  1. … 4 more files in changeset.
Add support for plugins {} in Kotlin settings scripts.

  1. … 17 more files in changeset.
Polish `ResidualProgramCompiler`

- Emit `CHECKCAST` after `KotlinScriptHost.getTarget` uniformly

Polish `ResidualProgramCompiler`

- Emit `CHECKCAST` after `KotlinScriptHost.getTarget` uniformly

Move `CompiledKotlinSettingsScript` to the support package

Only source-level API compatibility is required for script templates.

  1. … 4 more files in changeset.
Move `CompiledKotlinSettingsScript` to the support package

Only source-level API compatibility is required for script templates.

  1. … 4 more files in changeset.
Replace `Project` interface delegation by `Project` implicit receiver

  1. … 12 more files in changeset.
Replace `Project` interface delegation by `Project` implicit receiver

  1. … 12 more files in changeset.
wip: Remove `Gradle` and `Settings` interface delegation from Kotlin scripts

And take advantage of Kotlin script _implicit receivers_ instead.

  1. … 13 more files in changeset.
wip:

  1. … 5 more files in changeset.
Remove `Gradle` and `Settings` interface delegation from Kotlin scripts

And take advantage of Kotlin script _implicit receivers_ instead.

  1. … 14 more files in changeset.
Upgrade embedded Kotlin version to 1.3.50

See https://blog.jetbrains.com/kotlin/2019/08/kotlin-1-3-50-released/

  1. … 6 more files in changeset.
Upgrade embedded Kotlin version to 1.3.50

See https://blog.jetbrains.com/kotlin/2019/08/kotlin-1-3-50-released/

  1. … 6 more files in changeset.
TEMPORARY COMMIT

  1. … 9 more files in changeset.
Upgrade embedded Kotlin version to 1.3.50

See https://blog.jetbrains.com/kotlin/2019/08/kotlin-1-3-50-released/

  1. … 9 more files in changeset.
TEMPORARY COMMIT

  1. … 9 more files in changeset.
TEMPORARY COMMIT

  1. … 9 more files in changeset.
Allow scripts with `pluginManagement` and additional logic to compile

  1. … 1 more file in changeset.