plugins

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

    • -226
    • +0
    ./precompiled/PrecompiledScriptPlugins.kt
  1. … 517 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
    • +1
    ./precompiled/PrecompiledScriptPlugins.kt
  1. … 38 more files in changeset.
Deduplicate project.serviceOf<T>()

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

    • -1
    • +1
    ./precompiled/PrecompiledScriptPlugins.kt
  1. … 11 more files in changeset.
Normalise line separators of strings given to the Kotlin lexer

Fixes #858

  1. … 2 more files in changeset.
Let the `kotlin-dsl` plugin add gradleKotlinDSl() to testImplementation

instead of testRuntime

in order for the Kotlin DSL api to be available for tests implemented

using ProjectBuilder, mocks etc...

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

  1. … 1 more file in changeset.
Add link to precompiled script plugin from `Plugin<*>` adapter

    • -1
    • +6
    ./precompiled/PrecompiledScriptPlugins.kt
  1. … 1 more file in changeset.
Extract `KotlinDslCompilerPlugins` from `KotlinDslPlugin`

So it can be used separately.

    • -0
    • +40
    ./dsl/KotlinDslCompilerPlugins.kt
Polish `PrecompiledScriptPlugins`

    • -1
    • +6
    ./precompiled/PrecompiledScriptPlugins.kt
Remove unnecessary laziness of `ScriptPlugin` list

    • -6
    • +5
    ./precompiled/PrecompiledScriptPlugins.kt
Introduce `integ-tests` project

And make generated code follow the kotlin-dsl coding conventions.

    • -1
    • +1
    ./precompiled/PrecompiledScriptPlugins.kt
  1. … 7 more files in changeset.
Polish `PrecompiledScriptPlugin`

- Inline unnecessary variable

    • -2
    • +2
    ./precompiled/PrecompiledScriptPlugins.kt
Propagate exception thrown by precompiled script plugin unwrapped

    • -4
    • +8
    ./precompiled/PrecompiledScriptPlugins.kt
  1. … 1 more file in changeset.
Make `scriptFile` private

Reuse `KotlinScriptType` in `ScriptPlugin`

  1. … 2 more files in changeset.
Polish `PrecompiledScriptPlugins`

Query file only once.

    • -1
    • +2
    ./precompiled/PrecompiledScriptPlugins.kt
Preserve package declaration in script plugin adapter

    • -11
    • +29
    ./precompiled/PrecompiledScriptPlugins.kt
  1. … 2 more files in changeset.
Polish `ScriptPlugin`

Dedupe file extension based logic.

Protect `implementationClass` against invalid identifier characters

  1. … 1 more file in changeset.
Add support for precompiled `Gradle` plugins

  1. … 1 more file in changeset.
Add support for precompiled `Settings` plugins

    • -6
    • +3
    ./precompiled/PrecompiledScriptPlugins.kt
  1. … 1 more file in changeset.
Make precompiled script plugins publishable via `maven-publish`

By populating `gradlePlugin.plugins` eagerly.

    • -16
    • +5
    ./precompiled/PrecompiledScriptPlugins.kt
  1. … 2 more files in changeset.
Produce `List<ScriptPlugin>` lazyly

    • -5
    • +5
    ./precompiled/PrecompiledScriptPlugins.kt
Only exposes script plugins from `pluginSourceSet`

    • -4
    • +13
    ./precompiled/PrecompiledScriptPlugins.kt
Fix typo

    • -2
    • +2
    ./precompiled/PrecompiledScriptPlugins.kt
Expose precompiled scripts as Gradle plugins

The Gradle plugin id is derived from the script file name and its

package declaration if any.

The implementation is currently limited to scripts under

`src/main/kotlin`. Future commits will lift this restriction.

See #669

    • -30
    • +151
    ./precompiled/PrecompiledScriptPlugins.kt
    • -0
    • +122
    ./precompiled/ScriptPlugin.kt
  1. … 3 more files in changeset.
Expose implicit imports to precompiled scripts

By encoding the list of implicit imports directly in the compiler arguments.

Additionally:

- Extract the `PrecompiledScriptPlugins` plugin from the `kotlin-dsl`

plugin so it can be applied independently of `kotlin-dsl` until all

cacheability issues have been sorted out.

- Remove implicit imports handling from

`KotlinBuildScriptDependenciesResolver` as it's now handled by

`PrecompiledScriptDependenciesResolver`.

    • -0
    • +78
    ./precompiled/PrecompiledScriptPlugins.kt
  1. … 4 more files in changeset.
lint: missing new line before ")"

  1. … 42 more files in changeset.
Introduce `PrecompiledInitScript` script template

  1. … 3 more files in changeset.
Introduce `PrecompiledSettingsScript` script template

  1. … 3 more files in changeset.
Introduce `PrecompiledProjectScript` script template

  1. … 5 more files in changeset.