Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Remove `platform` and `enforcePlatform` dsl from constraint handler

These shortcuts define details of a dependency like attributes,

requested capabilities and 'endorse strict' status. These things

can not be defined on constraints. So these methods only cause

inconsistent behavior.

One can use constraints in combination with platforms like this to

control platform versions:

dependencies {

api platform("org:platform")

constraints {

api "org:platform:1.0"

}

}

    • -12
    • +0
    ./support/delegates/DependencyConstraintHandlerDelegate.kt
  1. … 4 more files in changeset.
Remove `platform` and `enforcePlatform` dsl from constraint handler

These shortcuts define details of a dependency like attributes,

requested capabilities and 'endorse strict' status. These things

can not be defined on constraints. So these methods only cause

inconsistent behavior.

One can use constraints in combination with platforms like this to

control platform versions:

dependencies {

api platform("org:platform")

constraints {

api "org:platform:1.0"

}

}

    • -12
    • +0
    ./support/delegates/DependencyConstraintHandlerDelegate.kt
  1. … 3 more files in changeset.
Integrate with Gradle Enterprise plugin 3.0 (#11041)

    • -4
    • +19
    ./PluginDependenciesSpecExtensions.kt
    • -2
    • +2
    ./execution/ResidualProgramCompiler.kt
  1. … 51 more files in changeset.
Update scan support for Gradle Enterprise plugin 3.0

Gradle 6 is now only compatible with this plugin.

    • -4
    • +19
    ./PluginDependenciesSpecExtensions.kt
    • -2
    • +2
    ./execution/ResidualProgramCompiler.kt
  1. … 34 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. … 71 more files in changeset.
Make paths/names of included builds immutable

  1. … 31 more files in changeset.
Mark `KotlinBuildScript` as `@since 6.0` to silence binary compatibility errors

Report script diagnostics to the host

    • -0
    • +143
    ./support/CompilationConfigurations.kt
Start migrating the `KotlinBuildScript` template to the new API

    • -1
    • +1
    ./precompile/v1/PrecompiledScriptTemplates.kt
  1. … 1 more file in changeset.
Add the kotlin-eap repo to all Kotlin DSL scripts buildscript scriptHandler

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

Add the kotlin-eap repo to all Kotlin DSL scripts buildscript scriptHandler

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

Polish `MyKotlinScript.kt`

Experiment with new Kotlin script template API

The new template kicks-in for scripts named `*.my.kts` anywhere in a project.

  1. … 1 more file 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
    • +1
    ./resolver/KotlinBuildScriptModelRequest.kt
  1. … 20 more files in changeset.
Move model parameters declaration to :toolingApi

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

    • -1
    • +1
    ./resolver/KotlinBuildScriptModelRequest.kt
  1. … 6 more files in changeset.
Add missing `@Incubating` annotation

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

    • -23
    • +0
    ./precompile/v1/PrecompiledScriptTemplates.kt
Fail to compile nested `plugins` blocks in Kotlin scripts

    • -3
    • +26
    ./precompile/v1/PrecompiledScriptTemplates.kt
  1. … 1 more file in changeset.
Fail to compile nested `plugins` blocks in Kotlin scripts

    • -3
    • +26
    ./precompile/v1/PrecompiledScriptTemplates.kt
  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>

    • -4
    • +0
    ./resolver/KotlinBuildScriptDependenciesResolver.kt
Remove now unused ResolverAction.Return

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

    • -4
    • +0
    ./resolver/KotlinBuildScriptDependenciesResolver.kt
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>

    • -17
    • +46
    ./resolver/KotlinBuildScriptDependenciesResolver.kt
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>

    • -17
    • +46
    ./resolver/KotlinBuildScriptDependenciesResolver.kt
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`.

    • -10
    • +11
    ./support/DefaultKotlinScript.kt
  1. … 1 more file in changeset.
Let precompiled script templates support the `ObjectConfigurationAction` syntax

    • -2
    • +2
    ./precompile/v1/PrecompiledScriptTemplates.kt
  1. … 1 more file in changeset.
Polish `PrecompiledScriptTemplates.kt`

- Reduce member visibility

    • -0
    • +1
    ./precompile/v1/PrecompiledScriptTemplates.kt
Let precompiled project script template support `ObjectConfigurationAction` syntax

    • -1
    • +2
    ./precompile/v1/PrecompiledScriptTemplates.kt
  1. … 1 more file in changeset.
Remove deprecation from script template used for content assistance