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

    • -109
    • +0
    ./tooling/builders/BuildSrcSourceRootsConfigurationAction.kt
    • -376
    • +0
    ./tooling/builders/KotlinBuildScriptModelBuilder.kt
    • -55
    • +0
    ./tooling/builders/KotlinBuildScriptTemplateModelBuilder.kt
    • -116
    • +0
    ./tooling/builders/KotlinLibSources.kt
    • -35
    • +0
    ./tooling/builders/KotlinScriptingModelBuildersRegistrationAction.kt
  1. … 517 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
    ./tooling/builders/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

    • -6
    • +10
    ./tooling/builders/KotlinBuildScriptModelBuilder.kt
Compute init script classpath via `KotlinScriptFactory`

Serve correct classpath for `Settings` script plugins

    • -17
    • +65
    ./tooling/builders/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.

    • -6
    • +12
    ./tooling/builders/KotlinBuildScriptModelBuilder.kt
  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
    ./tooling/builders/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
    ./tooling/builders/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
    • +1
    ./tooling/builders/KotlinBuildScriptTemplateModelBuilder.kt
    • -1
    • +1
    ./tooling/builders/KotlinScriptingModelBuildersRegistrationAction.kt
  1. … 36 more files in changeset.
Deduplicate project.serviceOf<T>()

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

    • -1
    • +1
    ./tooling/builders/KotlinBuildScriptTemplateModelBuilder.kt
    • -1
    • +1
    ./tooling/builders/KotlinScriptingModelBuildersRegistrationAction.kt
  1. … 9 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
    ./tooling/builders/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
    ./tooling/builders/KotlinBuildScriptModelBuilder.kt
  1. … 1 more file in changeset.
Polish BuildSrcSourceRootsConfigurationAction

    • -1
    • +1
    ./tooling/builders/BuildSrcSourceRootsConfigurationAction.kt
Reuse `KotlinScriptType` in `ScriptPlugin`

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

    • -19
    • +5
    ./tooling/builders/KotlinBuildScriptModelBuilder.kt
  1. … 1 more file in changeset.
Hardcode 'build' on both sides of buildSrc source roots resolution

    • -1
    • +1
    ./tooling/builders/BuildSrcSourceRootsConfigurationAction.kt
  1. … 1 more file in changeset.
Fix buildSrc classpath invalidation between regular and ide modes

Previous implementation using a file added to buildSrc jar was a bad

idea, it would have invalidated the buildSrc classpath each time build

executions switch between regular and ide modes.

Put the file under `buildSrc/build` instead.

    • -18
    • +6
    ./tooling/builders/BuildSrcSourceRootsConfigurationAction.kt
  1. … 1 more file in changeset.
Short circuit buildSrc source roots action when not in classpath mode

in order not to impact all other build executions

by extracting classpath mode switch to its own type

    • -2
    • +5
    ./tooling/builders/BuildSrcSourceRootsConfigurationAction.kt
  1. … 3 more files in changeset.
Source sets and project dependencies in buildSrc source roots

A BuildSrcProjectConfiguration action creates a task that generates a

text file containing the source roots for the root buildSrc project and

all its runtime project dependencies.

This allows for correct buildSrc source roots resolution when editing

kotlin settings or build scripts in the presence of a multi-project

buildSrc build.

    • -0
    • +118
    ./tooling/builders/BuildSrcSourceRootsConfigurationAction.kt
  1. … 6 more files in changeset.
lint: missing new line before ")"

    • -1
    • +2
    ./tooling/builders/KotlinBuildScriptTemplateModelBuilder.kt
  1. … 41 more files in changeset.
lint: horizontal whitespace

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

    • -0
    • +1
    ./tooling/builders/KotlinScriptingModelBuildersRegistrationAction.kt
  1. … 66 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

    • -10
    • +6
    ./tooling/builders/KotlinBuildScriptModelBuilder.kt
  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

    • -0
    • +33
    ./tooling/builders/KotlinBuildScriptModelBuilder.kt
  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.