script

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Convert to multi-project build in preparation to adding new modules

See #304

    • -40
    • +0
    ./lang/kotlin/ConfigurableFileCollectionExtensions.kt
    • -33
    • +0
    ./lang/kotlin/ConfigurationExtensions.kt
    • -35
    • +0
    ./lang/kotlin/ConventionExtensions.kt
    • -32
    • +0
    ./lang/kotlin/CopySpecExtensions.kt
    • -274
    • +0
    ./lang/kotlin/DependencyHandlerExtensions.kt
    • -66
    • +0
    ./lang/kotlin/DependencyHandlerScope.kt
    • -50
    • +0
    ./lang/kotlin/DomainObjectCollectionExtensions.kt
    • -60
    • +0
    ./lang/kotlin/ExtensionContainerExtensions.kt
    • -49
    • +0
    ./lang/kotlin/ExtraPropertiesExtensions.kt
    • -77
    • +0
    ./lang/kotlin/GroovyInteroperability.kt
    • -50
    • +0
    ./lang/kotlin/NamedDomainObjectCollectionExtensions.kt
    • -160
    • +0
    ./lang/kotlin/NamedDomainObjectContainerExtensions.kt
    • -31
    • +0
    ./lang/kotlin/ObjectConfigurationActionExtensions.kt
  1. … 249 more files in changeset.
Polish `KotlinBuildScript`

- Move `#apply` to `ProjectExtensions`

- Move `GradleDsl` to its own file

    • -0
    • +26
    ./lang/kotlin/GradleDsl.kt
Compiler supports ScriptSource with no backing file

    • -14
    • +19
    ./lang/kotlin/provider/CachingKotlinCompiler.kt
Add support for `PropertyState` delegated properties

And `ConfigurableFileCollection` as well.

See #344

    • -0
    • +40
    ./lang/kotlin/ConfigurableFileCollectionExtensions.kt
    • -0
    • +37
    ./lang/kotlin/PropertyStateExtensions.kt
Document commonly used extensions

    • -0
    • +6
    ./lang/kotlin/ExtraPropertiesExtensions.kt
Polish build script base classes

Describe NamedDomainObjectContainerScope, NamedDomainObjectContainerDelegateProvider and PolymorphicDomainObjectContainerDelegateProvider

    • -2
    • +18
    ./lang/kotlin/NamedDomainObjectContainerExtensions.kt
Rename `KotlinScriptHandler => ScriptHandlerScope`

    • -37
    • +0
    ./lang/kotlin/KotlinScriptHandler.kt
    • -0
    • +41
    ./lang/kotlin/ScriptHandlerScope.kt
Rename `KotlinPluginDependenciesHandler => PluginDependenciesSpecScope`

    • -33
    • +0
    ./lang/kotlin/KotlinPluginDependenciesHandler.kt
    • -0
    • +49
    ./lang/kotlin/PluginDependenciesSpecScope.kt
  1. … 2 more files in changeset.
Describe `ClientModuleScope`

Rename `KotlinDependencyHandler => DependencyHandlerScope`

    • -0
    • +66
    ./lang/kotlin/DependencyHandlerScope.kt
    • -64
    • +0
    ./lang/kotlin/KotlinDependencyHandler.kt
  1. … 1 more file in changeset.
Rename `BuildScriptBlockMarker => GradleDsl`

    • -1
    • +1
    ./lang/kotlin/KotlinPluginDependenciesHandler.kt
Add compilation classpath to script cache key

This is so changes to the now globally cached

`gradle-script-kotlin-accessors.jar` jars are taken into account.

This is necessary because:

- `gradle-script-kotlin-accessors.jar` is cached based only on the

project schema (the set of extensions and conventions paired with

their types)

- type names generated by the Kotlin compiler are not deterministic

Polish

Cache accessors globally

See #340

Add missing license header

Move from ScriptPluginFactoryProvider SPI to ScriptingLanguage SPI

See #37

    • -0
    • +10
    ./lang/kotlin/provider/KotlinScriptingLanguage.kt
  1. … 2 more files in changeset.
@Inject KotlinScriptPluginFactory

Explicit return types

On members for which such explicitness is required by dokka

Tighten exported API

This commit adds `internal` or `private` to internal members

The only exported API that includes Gradle internals is now in .provider

See #209

    • -2
    • +1
    ./lang/kotlin/provider/BuildServices.kt
  1. … 9 more files in changeset.
Reuse implicit imports provided by Gradle and add Kotlin specifics

    • -1
    • +3
    ./lang/kotlin/provider/BuildServices.kt
    • -0
    • +27
    ./lang/kotlin/support/GlobalServices.kt
    • -7
    • +16
    ./lang/kotlin/support/ImplicitImports.kt
Add source dir of generated project accessors to script source path

Enables navigation to the sources and quick documentation access.

See #281

  1. … 4 more files in changeset.
Unclutter resolver log output

- Print each property on its own line

- Use a more compact representation for path and namespace lists

- Make log file name order predictable

    • -0
    • +75
    ./lang/kotlin/resolver/CompactTree.kt
    • -0
    • +62
    ./lang/kotlin/resolver/ResolverEvent.kt
    • -0
    • +166
    ./lang/kotlin/resolver/ResolverEventLogger.kt
  1. … 1 more file in changeset.
Polish

Integration test samples

See #345

  1. … 32 more files in changeset.
Move source path computation to the server side

See #281

  1. … 1 more file in changeset.
Dedupe script classpath computation

    • -11
    • +3
    ./lang/kotlin/provider/KotlinBuildScriptCompiler.kt
  1. … 1 more file in changeset.
Unify handling of JIT and AOT project accessors

This is the first step toward fixing #340.

Resolves #338

Resolves #339

    • -0
    • +186
    ./lang/kotlin/accessors/AccessorsClassPath.kt
    • -0
    • +94
    ./lang/kotlin/accessors/CodeGenerator.kt
    • -85
    • +13
    ./lang/kotlin/accessors/ProjectSchema.kt
    • -0
    • +30
    ./lang/kotlin/accessors/SingletonProperties.kt
    • -0
    • +42
    ./lang/kotlin/accessors/tasks/DisplayAccessors.kt
    • -0
    • +56
    ./lang/kotlin/accessors/tasks/GenerateProjectSchema.kt
    • -0
    • +36
    ./lang/kotlin/cache/BuildServices.kt
    • -0
    • +63
    ./lang/kotlin/cache/ScriptCache.kt
    • -0
    • +59
    ./lang/kotlin/provider/BuildServices.kt
    • -49
    • +17
    ./lang/kotlin/provider/CachingKotlinCompiler.kt
  1. … 13 more files in changeset.
Polish `KotlinScriptRootPlugin`

Extract cache properties to field

- Makes it easier to find it

- Avoids recreating the map on every query to the cache