ScriptApiTest.kt

Clone Tools
  • last updated a few seconds 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`

Polish `ScriptApiTest`

Polish `ScriptApiTest`

Polish `ScriptApiTest`

Polish `ScriptApiTest`

Migrate Kotlin DSL IDE Settings script template to new API

  1. … 5 more files in changeset.
Migrate Kotlin DSL IDE Settings script template to new API

  1. … 5 more files in changeset.
Migrate Kotlin DSL IDE Settings script template to new API

  1. … 5 more files in changeset.
Migrate Kotlin DSL IDE Settings script template to new API

  1. … 5 more files in changeset.
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`

Remove `ScriptApi` interface and use `KotlinScript` instead

  1. … 1 more file in changeset.
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.
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.
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.
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.
Import :kotlin-dsl and :kotlin-dsl-test-fixtures

Both in one go because of their circular dependency

Tests are failing because of the lack of :customInstallation

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

    • -0
    • +207
    ./ScriptApiTest.kt
  1. … 536 more files in changeset.