Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
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. … 71 more files in changeset.
Polish `Interpreter.kt`

- Remove shadowed name warning via method reference

Revert "Merge pull request #10954 from gradle/eskatos/kotlin-dsl/new-tapi-model-in-tooling-api-jar"

This reverts commit 00cdf938c0d9df3786760adeecf9c2e7d45bff78, reversing

changes made to 28d5b62f4ac9b3b57b57c5b625869516198ed836.

  1. … 20 more files in changeset.
Move model parameters declaration to :toolingApi

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

  1. … 6 more files in changeset.
Add missing `@Incubating` annotation

Make `Project.plugins { }` extension a top-level function

Fail to compile nested `plugins` blocks in Kotlin scripts

  1. … 1 more file in changeset.
Polish ResolverEnvironment

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

Remove now unused ResolverAction.Return

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

Put short-circuit behing an IDE flag

Next IJ release will make use of that flag.

It is unset by default, disabling the reintroduced short-circuit,

in order not to break users of existing IJ versions.

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. … 1 more file in changeset.
Let precompiled script templates support the `ObjectConfigurationAction` syntax

  1. … 1 more file in changeset.
Polish `PrecompiledScriptTemplates.kt`

- Reduce member visibility

Let precompiled project script template support `ObjectConfigurationAction` syntax

  1. … 1 more file in changeset.
Remove deprecation from script template used for content assistance

Polish `ResidualProgramCompiler`

- Add message to TODO exception

- Reduce member visibility

Move deprecation explanation from KDOC comment into annotation

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. … 1 more file in changeset.
Remove deprecation of classes still used by the IDE script templates

Let compiled Kotlin script templates implement `PluginAware` by delegation

In order to enable `ObjectConfigurationAction` syntax (`apply {... }`)

and to preserve file resolving semantics when using a `PluginAware`

extension such as `PluginAware.apply(from: String? = null, ...)` -

init and settings scripts resolve the applied script file relative to

the applying script.

  1. … 1 more file in changeset.
Let `CompiledKotlinBuildScriptAndPluginsBlock` script template implement the Kotlin script API

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. … 2 more files in changeset.
Merge branch 'release' into bamboo/kotlin-dsl/implicit-receivers

  1. … 2 more files in changeset.
Touch-up `Program.kt`

Update outdated comments

Minor formatting changes in kotlin sources

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

    • -3
    • +1
    ./kotlin/org/gradle/kotlin/dsl/execution/Lexer.kt
  1. … 2 more files in changeset.
Remove now unused function

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

Prefer val getter over thread safe lazy in Lexer/TopLevelBlockId

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

    • -1
    • +2
    ./kotlin/org/gradle/kotlin/dsl/execution/Lexer.kt