Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Relocate integration test to avoid issues caused by the temp test dir name

    • -23
    • +27
    ./dsl/integration/PrecompiledScriptPluginModelIntegrationTest.kt
Improve computation of cache key from project schema

- build a `HashCode` iteratively instead of assembling a potentially

huge string

- make sure the hash code distinguishes among extensions, conventions,

tasks and container elements by inserting a separator (the set size)

between each one of them

    • -0
    • +236
    ./dsl/accessors/ProjectSchemaHashCodeTest.kt
    • -115
    • +16
    ./dsl/accessors/ProjectSchemaTest.kt
  1. … 2 more files in changeset.
Add test for `MapProperty` shortcut method

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

    • -0
    • +16
    ./dsl/ObjectFactoryExtensionsTest.kt
Let cache key derived from project schema include tasks and elements

Resolves #1303

    • -7
    • +122
    ./dsl/accessors/ProjectSchemaTest.kt
  1. … 2 more files in changeset.
Emit type-safe accessors for plugins in the compile classpath

  1. … 15 more files in changeset.
Move kotlin-dsl in a sub directory

    • -107
    • +0
    ./dsl/ArtifactHandlerExtensionsTest.kt
    • -96
    • +0
    ./dsl/BuildCacheConfigurationExtensionsTest.kt
    • -67
    • +0
    ./dsl/ComponentSelectionRulesTest.kt
    • -28
    • +0
    ./dsl/ConfigurableFileCollectionExtensionsTest.kt
    • -25
    • +0
    ./dsl/ConfigurationExtensionsTest.kt
    • -47
    • +0
    ./dsl/ContentFilterableExtensionsTest.kt
    • -224
    • +0
    ./dsl/DelegatedGradlePropertiesExtensionsTest.kt
    • -318
    • +0
    ./dsl/DependencyHandlerExtensionsTest.kt
    • -98
    • +0
    ./dsl/ExtensionAwareExtensionsTest.kt
    • -116
    • +0
    ./dsl/ExtensionContainerExtensionsTest.kt
    • -104
    • +0
    ./dsl/ExtraPropertiesExtensionsTest.kt
    • -266
    • +0
    ./dsl/GroovyInteroperabilityTest.kt
    • -622
    • +0
    ./dsl/NamedDomainObjectCollectionExtensionsTest.kt
  1. … 1565 more files in changeset.
Remove unnecesary base class

    • -35
    • +0
    ./dsl/accessors/ProjectSchemaBasedTest.kt
Let `PrintAccessors` emit the same code used for the extensions jar

Signed-off-by: Rodrigo B. de Oliveira <rodrigo@gradle.com>

    • -0
    • +35
    ./dsl/accessors/ProjectSchemaBasedTest.kt
    • -0
    • +77
    ./dsl/accessors/tasks/PrintAccessorsTest.kt
  1. … 4 more files in changeset.
Simplify `File.walkReproducibly`

    • -0
    • +68
    ./dsl/support/WalkReproduciblyTest.kt
  1. … 1 more file in changeset.
Re-enable tests on Windows

Ignore failing tests on Windows temporarily

Serve the right classpath for scripts in nested projects

By doing a 2nd tooling API query against a potential nested project

whenever the given script cannot be determined to belong to the

imported project.

    • -50
    • +73
    ./dsl/integration/KotlinBuildScriptModelIntegrationTest.kt
    • -1
    • +2
    ./dsl/resolver/KotlinBuildScriptModelRepositoryTest.kt
  1. … 4 more files in changeset.
Don't canonicalize test jar file name for compatibility with Windows

  1. … 1 more file in changeset.
Move project root discovery logic lower in the stack

So it can be tested separately from the resolver.

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