lang

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Polish `KotlinScriptRootPlugin`

Extract cache properties to field

- Makes it easier to find it

- Avoids recreating the map on every query to the cache

    • -1
    • +4
    ./kotlin/provider/CachingKotlinCompiler.kt
Bump cache version due to the latest API changes

    • -1
    • +1
    ./kotlin/provider/CachingKotlinCompiler.kt
Rename `NamedDomainObjectContainer{Configuration => Scope}`

    • -3
    • +3
    ./kotlin/NamedDomainObjectContainerExtensions.kt
Rename `ClientModule{Configuration => Scope}`

    • -6
    • +6
    ./kotlin/DependencyHandlerExtensions.kt
Polish

- Normalise placement of `private`, `protected`, `internal` and

`inline` modifiers

    • -5
    • +8
    ./kotlin/DependencyHandlerExtensions.kt
    • -2
    • +4
    ./kotlin/DomainObjectCollectionExtensions.kt
    • -2
    • +4
    ./kotlin/ExtensionContainerExtensions.kt
    • -1
    • +2
    ./kotlin/NamedDomainObjectContainerExtensions.kt
    • -1
    • +2
    ./kotlin/ObjectConfigurationActionExtensions.kt
    • -2
    • +4
    ./kotlin/PolymorphicDomainObjectContainerExtensions.kt
    • -1
    • +2
    ./kotlin/accessors/ProjectExtensionsBuildSrcConfigurationAction.kt
    • -6
    • +12
    ./kotlin/codegen/ApiExtensionsJar.kt
    • -10
    • +20
    ./kotlin/provider/CachingKotlinCompiler.kt
    • -1
    • +2
    ./kotlin/provider/ClassLoaderHierarchy.kt
    • -1
    • +2
    ./kotlin/provider/JarGenerationProgressMonitorProvider.kt
  1. … 28 more files in changeset.
Execute Kotlin build scripts when computing the classpath

But ignore errors because any classpath is better than no classpath.

See #339

Return previous dependencies when TAPI model request fails

See #249

    • -1
    • +1
    ./kotlin/resolver/KotlinBuildScriptDependenciesResolver.kt
Log timestamp of `log` invocation

    • -6
    • +7
    ./kotlin/resolver/KotlinBuildScriptDependenciesResolver.kt
Fix GenerateProjectSchema UP-TO-DATE behavior

By declaring its inputs

Configuration accessors for convention and configuration return Unit

Make it explicit so Dokka doesn’t have to infer it

Generated configuration accessor for conventions returns Unit

For consistency with generated accessors for extensions

Favor Any? over * in CopySpec extensions

Favor `<expr>.run { ... }` over `with (<expr>) { ... }`

    • -1
    • +1
    ./kotlin/accessors/ProjectExtensionsBuildSrcConfigurationAction.kt
    • -1
    • +1
    ./kotlin/accessors/ProjectExtensionsTaskRegistrationAction.kt
    • -1
    • +1
    ./kotlin/resolver/KotlinBuildScriptDependenciesResolver.kt
  1. … 1 more file in changeset.
Remove ProjectExtensionsTaskRegistrationAction, apply a plugin instead

That way, no need to check for .kts files presence.

Builds not using gsk won’t suffer the performance penalty anymore.

Builds using gsk will benefit a small performance gain.

See #320

    • -50
    • +0
    ./kotlin/accessors/ProjectExtensionsTaskRegistrationAction.kt
    • -0
    • +40
    ./kotlin/provider/KotlinScriptBasePlugin.kt
    • -0
    • +3
    ./kotlin/provider/KotlinScriptPlugin.kt
  1. … 2 more files in changeset.
Resolve script classpath asynchronously

And log all the relevant events.

See #249

    • -0
    • +48
    ./kotlin/concurrent/Either.kt
    • -0
    • +81
    ./kotlin/concurrent/future.kt
    • -0
    • +47
    ./kotlin/concurrent/tapi.kt
    • -97
    • +246
    ./kotlin/resolver/KotlinBuildScriptDependenciesResolver.kt
    • -28
    • +32
    ./kotlin/resolver/KotlinBuildScriptModelRequest.kt
    • -11
    • +2
    ./kotlin/resolver/SourcePathProvider.kt
    • -0
    • +23
    ./kotlin/support/IO.kt
  1. … 7 more files in changeset.
Polish

- Decouple GradleInstallation from GradleConnector by favouring

pattern matching over method dispatch

    • -15
    • +20
    ./kotlin/resolver/KotlinBuildScriptModelRequest.kt
Generate accessors properties

  1. … 1 more file in changeset.
Generated extension accessor can configure DeferredConfigurable extensions

    • -5
    • +23
    ./kotlin/accessors/ProjectSchema.kt
  1. … 1 more file in changeset.
Make `Project#configure<T>` honour `DeferredConfigurable`

Resolves #327

  1. … 1 more file in changeset.
Remove unused code

Update to latest plugin management API

  1. … 1 more file in changeset.
Report correct location for `buildscript` block compilation errors

And for `plugins` block compilation errors.

Resolves #177

    • -9
    • +21
    ./kotlin/provider/CachingKotlinCompiler.kt
    • -0
    • +1
    ./kotlin/resolver/KotlinBuildScriptDependenciesResolver.kt
    • -13
    • +31
    ./kotlin/support/KotlinCompiler.kt
  1. … 2 more files in changeset.
Keep track of compilation errors to reduce chance of an exception

Most internal compiler errors we've been experiencing were being

caused by the assigned `MessageCollector` fooling the compiler into

assuming there were no errors (`hasErrors() = false`).

Improve logging behaviour

- Make compiler messages format closer to Kotlin's

- Format messages only if the will be logged

    • -1
    • +1
    ./kotlin/provider/CachingKotlinCompiler.kt
    • -1
    • +1
    ./kotlin/provider/KotlinScriptPlugin.kt
    • -10
    • +15
    ./kotlin/support/KotlinCompiler.kt
    • -0
    • +49
    ./kotlin/support/Logger.kt
  1. … 1 more file in changeset.
Display compilation exception stack traces only if `--stacktrace`

Resolves #290

Polish `KotlinCompiler`

Compute parent classpath via `ClasspathUtil#getClasspath`

See #190

    • -25
    • +0
    ./kotlin/provider/ClassPathExtensions.kt
    • -0
    • +30
    ./kotlin/support/ClassPathExtensions.kt
Polish `exportClassPathOf`

Polish `foldHierarchy`