KotlinBuildScriptDependenciesResolver.kt

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Remove location aware exception hints from IDE resolver temporarily

They need some more love to be more useful and less distracting

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -53
    • +0
    ./KotlinBuildScriptDependenciesResolver.kt
Polish `KotlinBuildScriptDependenciesResolver`

- Check for script file nullability only once during `Report.exceptions`

- Canonicalize script file only once

    • -9
    • +17
    ./KotlinBuildScriptDependenciesResolver.kt
Report currently edited script location aware exceptions as IDE hints

This lets runtime failures surface right in the editor at the offending

line.

Script compilation failures are ignored as the native IDE hints already

provides enough feedback.

Only location aware exceptions for the currently edited script are

reported.

Reflection is used on the location aware exceptions because their java

class comes from another class loader.

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -7
    • +53
    ./KotlinBuildScriptDependenciesResolver.kt
Remove script dependencies resolver short-circuit

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -107
    • +12
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 2 more files in changeset.
Polish `RequestQueue`

Reuse `fetchKotlinBuildScriptModelFor` by making it a non-suspending

function.

    • -11
    • +1
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 1 more file in changeset.
Polish `RequestQueue`

By extracting common thread and queueing logic into `EventLoop<T>`.

    • -32
    • +10
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 2 more files in changeset.
Serialize TAPI requests

In order to avoid spawning a Gradle daemon per open .gradle.kts

script.

See #942

    • -1
    • +64
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 2 more files in changeset.
Move all subprojects to the `subprojects` directory

    • -0
    • +287
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 521 more files in changeset.