Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Prove the new script templates are not missing any members

- prove new init script template is not missing any members from the legacy

`InitScriptApi`

- prove new setting script template is not missing any members from the legacy

`SettingsScriptApi`

Upgrade Kotlin to 1.3.60

  1. … 7 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.
Ensure `settings.gradle.kts` with `pluginManagement` block honors auto-applied plugins

Make `settings.gradle.kts` evaluation trigger auto-applied plugins

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

  1. … 52 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.
Polish ResolverCoordinatorTest

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

Prefer `Action<T>` over `T.() -> Unit` for the Kotlin script API

From the perspective of an user of the API both types are effectively

the same.

From a compile time and runtime perspective `Action<T>` seems a better

choice as values can be passed to the core Gradle API directly.

From an API consistency point of view `Action<T>` also looks like the

superior choice as it is more consistent with the rest of the Gradle

API.

And finally, from an user education perspective, `KotlinScript`

provides a clear opportunity for users to understand the equivalence

between `Action<T>` and `T.() -> Unit`.

  1. … 2 more files in changeset.
Polish `ScriptApiTest`

Polish `ResidualProgramCompilerTest`

- Remove spurious empty line

Remove `ScriptApi` interface and use `KotlinScript` instead

  1. … 1 more file in changeset.
Restore Kotlin DSL script deps resolver short circuit

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

  1. … 3 more files in changeset.
Polish `TestWithCompiler`

- Reuse `PluginManagementSpec` mock

Polish `ParserToCompilerTest`

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

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

  1. … 3 more files in changeset.
Minor formatting changes in kotlin sources

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

    • -0
    • +1
    ./org/gradle/kotlin/dsl/execution/LexerTest.kt
  1. … 3 more files in changeset.
Let Kotlin settings script template for `pluginManagement` block implement the Kotlin script API

  1. … 1 more file in changeset.
Let Kotlin build scripts honor the common `KotlinScript` contract

  1. … 3 more files in changeset.
Polish `KotlinScript` and family

- Better and more uniform names

  1. … 5 more files in changeset.
Let precompiled project scripts support the Kotlin script API

  1. … 1 more file in changeset.
Prove Kotlin settings scripts support the Kotlin script API

Let precompiled init scripts support the Kotlin script API

  1. … 1 more file in changeset.
Let Kotlin settings script honor the common `KotlinScript` contract

  1. … 3 more files in changeset.
Introduce `KotlinScript` contract and implement it for Kotlin init scripts

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

    • -5
    • +7
    ./org/gradle/kotlin/dsl/execution/LexerTest.kt
  1. … 13 more files in changeset.
Remove core interfaces from precompiled Kotlin script template type hierarchy

Support for a common script API will come in a subsequent commit.

  1. … 9 more files in changeset.
Add test for deprecated configuration accessors

This commit adds a test that makes sure that the

`kotlin.Deprecated` annotation is properly added

to the extension methods for deprecated configu-

rations.

  1. … 1 more file in changeset.
Mitigate flakiness of `DefaultAsyncIOScopeFactoryTest`