KotlinScriptClassPathProvider.kt

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Move all subprojects to the `subprojects` directory

    • -241
    • +0
    ./KotlinScriptClassPathProvider.kt
  1. … 521 more files in changeset.
Simplify splitting :provider into :provider-plugins

by letting :provider-plugins depend directly on :provider

and removing :provider-spi

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

  1. … 38 more files in changeset.
Deduplicate project.serviceOf<T>()

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

  1. … 11 more files in changeset.
Compute classpath of root scope last to improve cache locality

Avoid intermediate data structures when computing the classpath

Replace `computeIfAbsent` by `getOrPut`

For compatibility with Java 9 which doesn't support reentrancy.

Optimise compilation classpath computation

- By caching the complete compilation `ClassPath` per `ClassLoaderScope`

- And by caching each individual `ClassLoader` `ClassPath`

The caches are part of a build scoped service and so all

`ClassLoaderScope` and `ClassLoader` instances will be held until the

end of the build.

See #824

    • -14
    • +40
    ./KotlinScriptClassPathProvider.kt
Port `ClasspathUtil.getClasspath` to Kotlin

To prepare for caching.

Use DefaultClassPath factory method instead of now deprecated ctor

  1. … 2 more files in changeset.
Move `exportClassPathFromHierarchyOf` to `KotlinScriptClassPathProvider`

  1. … 1 more file in changeset.
lint: missing new line before ")"

  1. … 42 more files in changeset.
Remove dead code

  1. … 1 more file in changeset.
First cut of tapi model builders supporting settings.gradle.kts

  1. … 4 more files in changeset.
Revert all changes pertaining to plugins { script(..) } support

#424

  1. … 10 more files in changeset.
private/internal vals for extensions jar cache id

See #424

Move the kotlin-dsl to the new PluginDependencySpec API

By using org.gradle.plugin.dsl.PluginDependenciesSpec

instead of org.gradle.plugin.use.PluginDependenciesSpec

See #424

  1. … 9 more files in changeset.
Polish `KotlinScriptClassPathProvider`

- Inline variable to avoid name shadowing warning

Rename base package to org.gradle.kotlin.dsl

    • -0
    • +163
    ./KotlinScriptClassPathProvider.kt
  1. … 313 more files in changeset.