KotlinBuildScriptModelBuilder.kt

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

    • -376
    • +0
    ./KotlinBuildScriptModelBuilder.kt
  1. … 521 more files in changeset.
Merge pull request #882 from gradle/bamboo/develop/script-plugin-classpath

Provide correct classpath for script plugins with buildscript blocks

    • -37
    • +121
    ./KotlinBuildScriptModelBuilder.kt
  1. … 8 more files in changeset.
Polish `KotlinBuildScriptModelBuilder`

- Make `ScriptSource` resource descriptions the same as core Gradle

- Make child `ClassLoaderScope` ids similar to core Gradle but avoid clashes

Compute init script classpath via `KotlinScriptFactory`

Serve correct classpath for `Settings` script plugins

    • -17
    • +65
    ./KotlinBuildScriptModelBuilder.kt
  1. … 1 more file in changeset.
Skip the script body when computing the classpath of a script plugin

The body of script plugins will still be executed when they are

applied from other scripts as they might affect the classpath of the

applying script.

  1. … 5 more files in changeset.
Use `KotlinScriptFactory` to compute the script plugin classpath

- It is faster than going through the `ScriptPluginFactory`

indirection

- We can more easily change its API

    • -19
    • +31
    ./KotlinBuildScriptModelBuilder.kt
Provide correct classpath for script plugins

By executing the script plugin and getting the resulting compilation

classpath from its target `ClassLoaderScope`.

See #110

    • -10
    • +23
    ./KotlinBuildScriptModelBuilder.kt
  1. … 1 more file 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.
Move embedded plugins to the Gradle Plugins classloader

by moving them to the :provider-plugins project

and adding 2 SPI interfaces in order to share code with :provider

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

  1. … 21 more files in changeset.
Polish `KotlinBuildScriptModelBuilder`

Use DefaultClassPath factory method instead of now unavailable ctor

  1. … 2 more files in changeset.
Search for project build files before searching for precompiled scripts

    • -21
    • +20
    ./KotlinBuildScriptModelBuilder.kt
Remove redundant argument

Provide correct classpath for precompiled script plugins

The classpath of a precompiled script plugin is the compile classpath

of its enclosing source-set.

See #670

    • -16
    • +57
    ./KotlinBuildScriptModelBuilder.kt
  1. … 1 more file in changeset.
Reuse `KotlinScriptType` in `ScriptPlugin`

  1. … 2 more files in changeset.
Extract `KotlinScriptType` from `KotlinBuildScriptModelBuilder`

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

  1. … 42 more files in changeset.
lint: horizontal whitespace

  1. … 14 more files in changeset.
lint: apply blank lines rule

  1. … 67 more files in changeset.
Treat `*.settings.gradle.kts` as `Settings` script plugins

Fixes #735

Follow-up work in #180

  1. … 2 more files in changeset.
Make `buildSrc` dependencies available to script plugins in the IDE

Resolves #728

  1. … 1 more file in changeset.
Serve the correct editor classpath for init scripts

Init scripts only see the core Gradle Kotlin DSL classpath (Gradle API + Kotlin

DSL API) and whatever is contributed to the `initscript` classpath

dependencies.

See #663

  1. … 5 more files in changeset.
Introduce exceptions in KotlinBuildScriptModel

from the ones collected when running in classpath mode

  1. … 1 more file in changeset.
Polish KotlinBuildScriptModelBuilder

Polish `KotlinBuildScriptModelBuilder`

    • -28
    • +32
    ./KotlinBuildScriptModelBuilder.kt
Polish `SourceDistributionProvider`

  1. … 1 more file in changeset.
Use `project.run` to avoid repeating `project.`

Rename `SourceDistributionResolver` to `SourceDistributionProvider`

  1. … 4 more files in changeset.