main

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

  1. … 249 more files in changeset.
Polish `KotlinBuildScript`

- Move `#apply` to `ProjectExtensions`

- Move `GradleDsl` to its own file

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

Add support for `PropertyState` delegated properties

And `ConfigurableFileCollection` as well.

See #344

    • -0
    • +37
    ./kotlin/org/gradle/script/lang/kotlin/PropertyStateExtensions.kt
Document commonly used extensions

Polish build script base classes

Describe NamedDomainObjectContainerScope, NamedDomainObjectContainerDelegateProvider and PolymorphicDomainObjectContainerDelegateProvider

Rename `KotlinScriptHandler => ScriptHandlerScope`

Rename `KotlinPluginDependenciesHandler => PluginDependenciesSpecScope`

  1. … 2 more files in changeset.
Describe `ClientModuleScope`

Rename `KotlinDependencyHandler => DependencyHandlerScope`

  1. … 1 more file in changeset.
Rename `BuildScriptBlockMarker => GradleDsl`

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

    • -1
    • +0
    ./resources/META-INF/services/org.gradle.configuration.ScriptPluginFactoryProvider
    • -0
    • +1
    ./resources/META-INF/services/org.gradle.scripts.ScriptingLanguage
@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

  1. … 9 more files in changeset.
Reuse implicit imports provided by Gradle and add Kotlin specifics

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

  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

  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
    • +94
    ./kotlin/org/gradle/script/lang/kotlin/accessors/CodeGenerator.kt
    • -0
    • +63
    ./kotlin/org/gradle/script/lang/kotlin/cache/ScriptCache.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