kotlin

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
    ./ConfigurableFileCollectionExtensions.kt
    • -274
    • +0
    ./DependencyHandlerExtensions.kt
    • -50
    • +0
    ./DomainObjectCollectionExtensions.kt
    • -50
    • +0
    ./NamedDomainObjectCollectionExtensions.kt
    • -160
    • +0
    ./NamedDomainObjectContainerExtensions.kt
    • -31
    • +0
    ./ObjectConfigurationActionExtensions.kt
  1. … 249 more files in changeset.
Polish `KotlinBuildScript`

- Move `#apply` to `ProjectExtensions`

- Move `GradleDsl` to its own file

Compiler supports ScriptSource with no backing file

    • -14
    • +19
    ./provider/CachingKotlinCompiler.kt
    • -5
    • +6
    ./provider/KotlinBuildScriptCompiler.kt
Add support for `PropertyState` delegated properties

And `ConfigurableFileCollection` as well.

See #344

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

Polish build script base classes

Describe NamedDomainObjectContainerScope, NamedDomainObjectContainerDelegateProvider and PolymorphicDomainObjectContainerDelegateProvider

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

    • -0
    • +41
    ./ScriptHandlerScope.kt
Rename `KotlinPluginDependenciesHandler => PluginDependenciesSpecScope`

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

Rename `KotlinDependencyHandler => DependencyHandlerScope`

    • -0
    • +66
    ./DependencyHandlerScope.kt
  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

    • -1
    • +4
    ./resolver/KotlinBuildScriptModelBuilder.kt
Cache accessors globally

See #340

Add missing license header

    • -0
    • +15
    ./provider/KotlinScriptingLanguage.kt
Move from ScriptPluginFactoryProvider SPI to ScriptingLanguage SPI

See #37

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

    • -1
    • +4
    ./provider/KotlinScriptPluginFactory.kt
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

    • -0
    • +3
    ./provider/BuildscriptBlockExtraction.kt
    • -0
    • +2
    ./provider/JarGenerationProgressMonitorProvider.kt
    • -0
    • +6
    ./provider/KotlinScriptClassPathProvider.kt
    • -1
    • +1
    ./provider/KotlinScriptPluginFactory.kt
    • -1
    • +1
    ./provider/KotlinScriptPluginFactoryProvider.kt
    • -1
    • +3
    ./resolver/KotlinBuildScriptDependenciesResolver.kt
  1. … 9 more files in changeset.
Reuse implicit imports provided by Gradle and add Kotlin specifics

    • -3
    • +2
    ./resolver/KotlinBuildScriptDependenciesResolver.kt
    • -2
    • +10
    ./resolver/KotlinBuildScriptModelBuilder.kt
    • -3
    • +5
    ./services/KotlinScriptServiceRegistry.kt
    • -0
    • +27
    ./support/GlobalServices.kt
Add source dir of generated project accessors to script source path

Enables navigation to the sources and quick documentation access.

See #281

    • -12
    • +15
    ./accessors/AccessorsClassPath.kt
    • -1
    • +1
    ./provider/KotlinBuildScriptCompiler.kt
    • -10
    • +20
    ./resolver/KotlinBuildScriptModelBuilder.kt
  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
    • +17
    ./provider/CharSequenceExtensions.kt
    • -0
    • +75
    ./resolver/CompactTree.kt
    • -107
    • +1
    ./resolver/KotlinBuildScriptDependenciesResolver.kt
    • -0
    • +62
    ./resolver/ResolverEvent.kt
    • -0
    • +166
    ./resolver/ResolverEventLogger.kt
  1. … 1 more file in changeset.
Polish

    • -2
    • +1
    ./resolver/KotlinBuildScriptDependenciesResolver.kt
    • -1
    • +1
    ./resolver/KotlinBuildScriptModelBuilder.kt
Integration test samples

See #345

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

See #281

    • -5
    • +1
    ./resolver/KotlinBuildScriptDependenciesResolver.kt
    • -3
    • +12
    ./resolver/KotlinBuildScriptModelBuilder.kt
  1. … 1 more file in changeset.
Dedupe script classpath computation

    • -11
    • +3
    ./provider/KotlinBuildScriptCompiler.kt
    • -24
    • +24
    ./provider/KotlinScriptClassPathProvider.kt
    • -3
    • +1
    ./provider/KotlinScriptPluginFactory.kt
    • -10
    • +10
    ./resolver/KotlinBuildScriptModelBuilder.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
    ./accessors/AccessorsClassPath.kt
    • -0
    • +94
    ./accessors/CodeGenerator.kt
    • -51
    • +0
    ./accessors/GenerateProjectSchema.kt
    • -144
    • +0
    ./accessors/ProcessProjectSchema.kt
    • -63
    • +0
    ./accessors/ProjectExtensionsBuildSrcConfigurationAction.kt
    • -0
    • +30
    ./accessors/SingletonProperties.kt
    • -0
    • +42
    ./accessors/tasks/DisplayAccessors.kt
    • -0
    • +56
    ./accessors/tasks/GenerateProjectSchema.kt
    • -0
    • +36
    ./cache/BuildServices.kt
    • -0
    • +63
    ./cache/ScriptCache.kt
    • -0
    • +59
    ./provider/BuildServices.kt
    • -49
    • +17
    ./provider/CachingKotlinCompiler.kt
  1. … 13 more files in changeset.
Polish `KotlinScriptRootPlugin`

    • -5
    • +12
    ./provider/KotlinScriptBasePlugin.kt
Extract cache properties to field

- Makes it easier to find it

- Avoids recreating the map on every query to the cache