Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Merge type-safe accessors for precompiled script plugins wip

    • -61
    • +0
    ./plugins/precompiled/GenerateExternalPluginSpecBuilders.kt
  1. … 34 more files in changeset.
Move precompiled script plugin tasks into `tasks` subpackage

    • -31
    • +0
    ./plugins/precompiled/ClassPathSensitiveCodeGenerationTask.kt
    • -39
    • +0
    ./plugins/precompiled/CompilePrecompiledScriptPluginPlugins.kt
    • -58
    • +0
    ./plugins/precompiled/ExtractPrecompiledScriptPluginPlugins.kt
    • -50
    • +0
    ./plugins/precompiled/GenerateInternalPluginSpecBuilders.kt
    • -165
    • +0
    ./plugins/precompiled/GeneratePrecompiledScriptPluginAccessors.kt
    • -0
    • +31
    ./plugins/precompiled/tasks/ClassPathSensitiveCodeGenerationTask.kt
    • -0
    • +54
    ./plugins/precompiled/tasks/ClassPathSensitiveTask.kt
    • -0
    • +39
    ./plugins/precompiled/tasks/CompilePrecompiledScriptPluginPlugins.kt
    • -0
    • +60
    ./plugins/precompiled/tasks/ExtractPrecompiledScriptPluginPlugins.kt
    • -0
    • +51
    ./plugins/precompiled/tasks/GenerateInternalPluginSpecBuilders.kt
    • -0
    • +166
    ./plugins/precompiled/tasks/GeneratePrecompiledScriptPluginAccessors.kt
  1. … 1 more file in changeset.
Wire precompiled script plugin tasks

    • -28
    • +1
    ./plugins/precompiled/ClassPathSensitiveCodeGenerationTask.kt
    • -0
    • +54
    ./plugins/precompiled/ClassPathSensitiveTask.kt
    • -0
    • +39
    ./plugins/precompiled/CompilePrecompiledScriptPluginPlugins.kt
    • -0
    • +58
    ./plugins/precompiled/ExtractPrecompiledScriptPluginPlugins.kt
    • -0
    • +61
    ./plugins/precompiled/GenerateExternalPluginSpecBuilders.kt
    • -0
    • +50
    ./plugins/precompiled/GenerateInternalPluginSpecBuilders.kt
    • -6
    • +5
    ./plugins/precompiled/GeneratePrecompiledScriptPluginAccessors.kt
Add missing `@PathSensitive` annotation

    • -0
    • +1
    ./plugins/precompiled/GeneratePrecompiledScriptPluginAccessors.kt
Reintroduce deletion of stale precompiled script plugin adapters

WIP: Let precompiled script plugins use plugin spec builders

    • -10
    • +20
    ./plugins/precompiled/GeneratePrecompiledScriptPluginAccessors.kt
Let GenerateScriptPluginAdapters clean stale outputs

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

  1. … 1 more file in changeset.
Annotate protected task properties as `@Internal`

Add `GeneratePrecompiledScriptPluginAccessors` task skeleton

    • -0
    • +55
    ./plugins/precompiled/ClassPathSensitiveCodeGenerationTask.kt
    • -0
    • +155
    ./plugins/precompiled/GeneratePrecompiledScriptPluginAccessors.kt
  1. … 9 more files in changeset.
Emit plugin spec builders to module with unique name

Derived from the compile classpath to avoid conflicts across plugins.

Emit type-safe accessors for plugins in the compile classpath

    • -0
    • +85
    ./plugins/precompiled/GeneratePluginSpecBuilders.kt
  1. … 16 more files in changeset.
Polish `PrecompiledScriptPlugin`

Group task operations into a `tasks` block in preparation to

introducing new tasks.

Document `PrecompiledScriptPlugins`

Including how to control the target and id of a precompiled script plugin.

Move kotlin-dsl in a sub directory

    • -61
    • +0
    ./plugins/base/KotlinDslBasePlugin.kt
    • -134
    • +0
    ./plugins/dsl/KotlinDslCompilerPlugins.kt
    • -54
    • +0
    ./plugins/dsl/KotlinDslPluginOptions.kt
    • -85
    • +0
    ./plugins/embedded/EmbeddedKotlinPlugin.kt
    • -176
    • +0
    ./plugins/precompiled/ScriptPlugin.kt
  1. … 1572 more files in changeset.
Protect against invalid first character in script plugin adapter name

Signed-off-by: Rodrigo B. de Oliveira <rodrigo@gradle.com>

  1. … 1 more file in changeset.
Simplify `GenerateScriptPluginAdapters` inputs computation

Fix GenerateScriptPluginAdapters cacheability

by fixing overlapping inputs/outputs

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

  1. … 1 more file in changeset.
Fix GenerateScriptPluginAdapters task input/output annotations

And let :*:validateTaskProperties fail the build on warnings

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

  1. … 2 more files in changeset.
`kotlin-dsl` plugin sets Kotlin apiVersion and languageVersion to 1.3

to match script compilation

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

    • -0
    • +2
    ./plugins/dsl/KotlinDslCompilerPlugins.kt
Let GenerateScriptPluginAdapters task be cacheable

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

    • -0
    • +104
    ./plugins/precompiled/GenerateScriptPluginAdapters.kt
  1. … 2 more files in changeset.
Plugin classes don't need to be open

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

    • -1
    • +1
    ./plugins/embedded/EmbeddedKotlinPlugin.kt
  1. … 5 more files in changeset.
`embedded-kotlin` plugin does not pin dependencies anymore

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

    • -6
    • +1
    ./plugins/embedded/EmbeddedKotlinPlugin.kt
  1. … 2 more files in changeset.
Refine KotlinDslCompilerPlugins

to preallocate two smaller strings ahead and build the whole message

when it's actually needed

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

    • -9
    • +5
    ./plugins/dsl/KotlinDslCompilerPlugins.kt
Precompute message in order not to leak Project instance

The KotlinCompile task logger goes through RMI to the Kotlin Compiler

daemon. Holding a Project instance per task exacerbated a memory leak

in the Kotlin compiler infrastructure.

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

    • -3
    • +3
    ./plugins/dsl/KotlinDslCompilerPlugins.kt
Polish PrecompiledScriptPlugins

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

Dedupe kotlin artifact configuration names

from EmbeddedKotlinPlugin and KotlinDslBasePlugin

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

    • -1
    • +6
    ./plugins/embedded/EmbeddedKotlinPlugin.kt
Let kotlin-dsl plugin apply precompiled scripts plugin

and java-gradle-plugin

to enable support for precompiled script plugins out of the box

existing functionality moved up to a kotlin-dsl.base plugin

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

    • -0
    • +66
    ./plugins/base/KotlinDslBasePlugin.kt
    • -37
    • +14
    ./plugins/dsl/KotlinDslPlugin.kt
    • -1
    • +4
    ./plugins/embedded/EmbeddedKotlinPlugin.kt
  1. … 1 more file in changeset.
Introduce the `kotlin-dsl-precompiled-script-plugins` plugin spec

And revert `PrecompiledScriptPlugins` being applied automatically by

the `kotlin-dsl` plugin.

  1. … 6 more files in changeset.
Let the embedded-kotlin plugin add stdlib & reflect to testImplementation

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

    • -1
    • +1
    ./plugins/embedded/EmbeddedKotlinPlugin.kt
  1. … 1 more file in changeset.
Set -Xprogressive for own libs compilation only

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

    • -4
    • +2
    ./plugins/dsl/KotlinDslCompilerPlugins.kt
  1. … 4 more files in changeset.