EmbeddedKotlinProviderTest.kt

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Merge remote-tracking branch 'origin/release-5.6' into release

* origin/release-5.6: (53 commits)

Add missing - to CI config

Use dedicated user with token-based authentication to execute… (#11044)

Restore behavior of pom packaging changing the main artifact extension

Backport test fixture improvements from 6.0 branch

Relax flaky test expectation

Add equality check in case update() is called twice for the same input

Fix code comment

Add missing hashCode() method

Add test coverage to pin down selector sorting behavior

Track 'changing' and 'client module' information for override metadata

Fix equals() of client module

Remove duplicated 'isKeyEquals' check

Do not expect an exact number of HEAD requests

Remove unused imports

Make http server fixture's handle() thread safe

Add integration test for dependency artifacts in multiple declarations

Avoid copying an already immutable list

Use a linked hash set for dependency artifacts

Support artifacts with different names in maven module fixture

Use the first found dependency artifact for override metadata

...

  1. … 2 more files in changeset.
Revert unneeded changes in tests

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

  1. … 9 more files in changeset.
Revert unneeded changes in tests

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

  1. … 9 more files in changeset.
Revert unneeded changes in tests

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

  1. … 9 more files in changeset.
Revert unneeded changes in tests

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

  1. … 9 more files in changeset.
Revert unneeded changes in tests

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

  1. … 9 more files in changeset.
Uniformly use RepoScriptBlockUtil in Kotlin DSL tests

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

  1. … 4 more files in changeset.
Uniformly use RepoScriptBlockUtil in Kotlin DSL tests

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

  1. … 4 more files in changeset.
Uniformly use RepoScriptBlockUtil in Kotlin DSL tests

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

  1. … 4 more files in changeset.
Uniformly use RepoScriptBlockUtil in Kotlin DSL tests

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

  1. … 4 more files in changeset.
Uniformly use RepoScriptBlockUtil in Kotlin DSL tests

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

  1. … 4 more files in changeset.
Add coverage for conflict with pinned embedded kotlin

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

Add coverage for conflict with pinned embedded kotlin

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

Polish EmbeddedKotlinProviderTest

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

Pin the whole subgraph of embedded kotlin dependencies

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

  1. … 3 more files in changeset.
Pin the whole subgraph of embedded kotlin dependencies

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

  1. … 3 more files in changeset.
Remove the embedded-kotlin-repository

It was based on ClientModule dependencies that caused more troubles than

anything. The main one being that the artificial dependency graph needed

to be kept up to date with each Kotlin version. Moreover since several

Kotlin versions, declaring a repository is necessary in any case. This

change simplifies the code and should make the runtime a bit faster.

However, the Kotlin dependencies when applying the `kotlin-dsl` plugin

are now required to be downloaded. This isn't a big change and should

only impact people using the `kotlin-dsl` plugin without depending on

Kotlin in other parts of their build. This could be alleviated in the

future if dependency resolution considers the Gradle install/distro as a

source of artifacts in the same way it uses maven local.

Along the way, the pinning of Kotlin dependencies to the embedded

version for the build scripts classpath has been moved from a resolution

rule to proper, faster, dependency constraints.

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

  1. … 6 more files in changeset.
Remove the embedded-kotlin-repository

It was based on ClientModule dependencies that caused more troubles than

anything. The main one being that the artificial dependency graph needed

to be kept up to date with each Kotlin version. Moreover since several

Kotlin versions, declaring a repository is necessary in any case. This

change simplifies the code and should make the runtime a bit faster.

However, the Kotlin dependencies when applying the `kotlin-dsl` plugin

are now required to be downloaded. This isn't a big change and should

only impact people using the `kotlin-dsl` plugin without depending on

Kotlin in other parts of their build. This could be alleviated in the

future if dependency resolution considers the Gradle install/distro as a

source of artifacts in the same way it uses maven local.

Along the way, the pinning of Kotlin dependencies to the embedded

version for the build scripts classpath has been moved from a resolution

rule to proper, faster, dependency constraints.

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

  1. … 6 more files in changeset.
Remove the embedded-kotlin-repository

It was based on ClientModule dependencies that caused more troubles than

anything. The main one being that the artificial dependency graph needed

to be kept up to date with each Kotlin version. Moreover since several

Kotlin versions, declaring a repository is necessary in any case. This

change simplifies the code and should make the runtime a bit faster.

However, the Kotlin dependencies when applying the `kotlin-dsl` plugin

are now required to be downloaded. This isn't a big change and should

only impact people using the `kotlin-dsl` plugin without depending on

Kotlin in other parts of their build. This could be alleviated in the

future if dependency resolution considers the Gradle install/distro as a

source of artifacts in the same way it uses maven local.

Along the way, the pinning of Kotlin dependencies to the embedded

version for the build scripts classpath has been moved from a resolution

rule to proper, faster, dependency constraints.

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

  1. … 6 more files in changeset.
Add missing dependency to embedded kotlin

* kotlin-stdlib now depends on kotlin-stdlib-common, this was not

reflected in the setup of the embedded kotlin repo.

* A way to experience this issue was with locking on a kotlin-dsl

project.

Fixes #10697

  1. … 1 more file in changeset.
Let :kotlinDsl integ tests use gradle/gradle integ test executer

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

  1. … 35 more files in changeset.
Move :kotlinDsl integration tests to src/integTest

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

    • -0
    • +76
    ./EmbeddedKotlinProviderTest.kt
  1. … 72 more files in changeset.