Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Let code generation always use same line separators

in order to produce reproducible outputs

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

    • -2
    • +3
    ./dsl/codegen/GradleApiExtensionsTest.kt
  1. … 7 more files in changeset.
Fix wrong assertion in ArtifactHandlerExtensionsTest

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

    • -1
    • +1
    ./dsl/ArtifactHandlerExtensionsTest.kt
Always resolve the script classpath against the imported project dir

To account for subprojects outside the root project directory.

This commit temporarily breaks the support for nested projects like

the ones found in `kotlin-dsl/samples` which shall be restored in a

subsequent commit.

Resolves #1231

    • -10
    • +65
    ./dsl/integration/KotlinBuildScriptModelIntegrationTest.kt
    • -2
    • +1
    ./dsl/integration/PrecompiledScriptPluginModelIntegrationTest.kt
  1. … 5 more files in changeset.
Polish `KotlinBuildScriptModelRepositoryTest`

    • -3
    • +4
    ./dsl/resolver/KotlinBuildScriptModelRepositoryTest.kt
Replace use of `Thread.sleep` by `CountDownLatch`

    • -1
    • +5
    ./dsl/resolver/KotlinBuildScriptModelRepositoryTest.kt
Fix `SourceDistributionResolverIntegrationTest` after distro snapshot update

    • -2
    • +2
    ./dsl/resolver/SourceDistributionResolverIntegrationTest.kt
Refine ScriptHandlerScope

reusing newDependencyHandlerMock fixture

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

    • -4
    • +4
    ./dsl/DependencyHandlerExtensionsTest.kt
Let ScriptBuildCacheKey.toString() return the key hash code

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

    • -2
    • +10
    ./dsl/caching/ScriptBuildCacheKeyTest.kt
  1. … 1 more file in changeset.
Generate type-safe accessors for extensions of project.dependencies

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

    • -9
    • +15
    ./dsl/DependencyHandlerExtensionsTest.kt
  1. … 3 more files in changeset.
Add coverage for ArtifactHandlerScope string invoke

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

    • -30
    • +45
    ./dsl/ArtifactHandlerExtensionsTest.kt
Let script dependencies resolver prioritise requests by recency

And signal the cancellation of superseded requests by responding with

`null`.

    • -0
    • +76
    ./dsl/resolver/ConcurrentGroupingQueueTest.kt
    • -0
    • +168
    ./dsl/resolver/KotlinBuildScriptModelRepositoryTest.kt
    • -2
    • +5
    ./dsl/resolver/KotlinScriptDependenciesResolverTest.kt
  1. … 6 more files in changeset.
Polish `KotlinScriptDependenciesResolverTest`

- Remove unnecessary empty line

- Simplify `instanceOf(T::class.java)` calls

- Reuse `withKotlinBuildSrc`

    • -26
    • +21
    ./dsl/resolver/KotlinScriptDependenciesResolverTest.kt
Migrate to the latest build cache API

    • -0
    • +62
    ./dsl/caching/LoadDirectoryTest.kt
  1. … 2 more files in changeset.
Update `SourceDistributionResolverIntegrationTest`

To account for the new modules in 5.1.

    • -3
    • +4
    ./dsl/resolver/SourceDistributionResolverIntegrationTest.kt
Add support for adding artifacts to a configuration in the `artifacts {}` DSL block

Signed-off-by: Mike Kobit <mkobit@gmail.com>

    • -0
    • +92
    ./dsl/ArtifactHandlerExtensionsTest.kt
  1. … 2 more files in changeset.
Generate accessors for `ArtifactHandler`

issue https://github.com/gradle/kotlin-dsl/issues/889

Signed-off-by: Mike Kobit <mkobit@gmail.com>

  1. … 5 more files in changeset.
Let `getting` property delegate use `getByName` instead of `named`

    • -17
    • +9
    ./dsl/NamedDomainObjectCollectionExtensionsTest.kt
    • -7
    • +3
    ./dsl/NamedDomainObjectContainerExtensionsTest.kt
  1. … 2 more files in changeset.
Remove unused variables

    • -2
    • +0
    ./dsl/NamedDomainObjectCollectionExtensionsTest.kt
Let `creating` property delegate use `create` instead of `register`

To minimize confusion when migrating away from the eager API.

    • -14
    • +26
    ./dsl/NamedDomainObjectCollectionExtensionsTest.kt
    • -2
    • +2
    ./dsl/NamedDomainObjectContainerExtensionsTest.kt
  1. … 1 more file in changeset.
Polish `DefaultAsyncIOScopeFactoryTest`

Sleep test thread to let IO thread observe failure before assertion

Polish `org.gradle.kotlin.dsl.concurrent.IO`

- Move interfaces and extensions to dedicated file `IO.kt`

- Extract Gradle service interface

- Improve test synchronization

    • -0
    • +122
    ./dsl/concurrent/DefaultAsyncIOScopeFactoryTest.kt
  1. … 5 more files in changeset.
Use a single IO thread per build

And let it be managed by Gradle's `ExecutorFactory` service.

See #1202

    • -0
    • +101
    ./dsl/concurrent/AsyncIOScopeFactoryTest.kt
  1. … 6 more files in changeset.
Augment test coverage for default package type accessors

See #1205

    • -3
    • +12
    ./dsl/accessors/DefaultPackageTypesTest.kt
    • -12
    • +41
    ./dsl/accessors/TestWithClassPath.kt
  1. … 2 more files in changeset.
Let generated accessors code import default package types

To enable quick documentation and navigation to the sources of default

package types.

See #1205

    • -35
    • +0
    ./dsl/accessors/DefaultPackageTypesTest.kt
    • -55
    • +55
    ./dsl/accessors/TestWithClassPath.kt
  1. … 6 more files in changeset.
Let generated plugin accessors code import default package types

To enable quick documentation and navigation to the sources of plugins

implemented by default package types.

See #1205

  1. … 1 more file in changeset.
Prove querying the classpath of script plugins with errors works

Fix `DefaultPackageTypesTest`

    • -20
    • +26
    ./dsl/accessors/DefaultPackageTypesTest.kt
Rename `AccessorBytecodeEmitterSpike => KotlinMetadataIntegrationTest`

    • -0
    • +99
    ./dsl/accessors/KotlinMetadataIntegrationTest.kt
Move `KotlinMetadataPrintingVisitor` closer to the test

    • -0
    • +284
    ./dsl/accessors/KotlinMetadataPrintingVisitor.kt
  1. … 1 more file in changeset.