provider

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

    • -56
    • +0
    ./JarGenerationProgressMonitorProvider.kt
    • -37
    • +0
    ./KotlinBuildScriptModelBuilderRegistrationAction.kt
    • -152
    • +0
    ./KotlinScriptClassPathProvider.kt
  1. … 250 more files in changeset.
Compiler supports ScriptSource with no backing file

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

Add missing license header

Move from ScriptPluginFactoryProvider SPI to ScriptingLanguage SPI

See #37

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

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
    • +2
    ./JarGenerationProgressMonitorProvider.kt
    • -1
    • +1
    ./KotlinScriptPluginFactoryProvider.kt
  1. … 15 more files in changeset.
Reuse implicit imports provided by Gradle and add Kotlin specifics

  1. … 5 more files in changeset.
Add source dir of generated project accessors to script source path

Enables navigation to the sources and quick documentation access.

See #281

  1. … 7 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. … 5 more files in changeset.
Dedupe script classpath computation

    • -24
    • +24
    ./KotlinScriptClassPathProvider.kt
  1. … 2 more files in changeset.
Unify handling of JIT and AOT project accessors

This is the first step toward fixing #340.

Resolves #338

Resolves #339

    • -1
    • +2
    ./KotlinBuildScriptModelBuilderRegistrationAction.kt
  1. … 22 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

Bump cache version due to the latest API changes

Polish

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

`inline` modifiers

    • -1
    • +2
    ./JarGenerationProgressMonitorProvider.kt
  1. … 35 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

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

  1. … 4 more files 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

    • -0
    • +40
    ./KotlinScriptBasePlugin.kt
  1. … 3 more files in changeset.
Resolve script classpath asynchronously

And log all the relevant events.

See #249

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

  1. … 4 more files in changeset.
Improve logging behaviour

- Make compiler messages format closer to Kotlin's

- Format messages only if the will be logged

  1. … 5 more files in changeset.
Compute parent classpath via `ClasspathUtil#getClasspath`

See #190

  1. … 2 more files in changeset.
Add project hierarchy classpath to the script compilation classpath

Resolves #190

  1. … 8 more files in changeset.
Create script ClassLoader via ClassLoaderScope

Resolves #171

Require non-empty source file list for cache key

Polish `CachingKotlinCompiler`

Make generated accessors visible to KotlinBuildScriptModel clients

See #234

    • -3
    • +5
    ./KotlinBuildScriptModelBuilderRegistrationAction.kt
  1. … 21 more files in changeset.
Polish KotlinScriptClassPathProvider