Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Simplify `GenerateScriptPluginAdapters` inputs computation

    • -1
    • +1
    ./dsl/plugins/precompiled/ScriptPlugin.kt
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
    ./dsl/plugins/dsl/KotlinDslCompilerPlugins.kt
Let GenerateScriptPluginAdapters task be cacheable

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

    • -0
    • +104
    ./dsl/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. … 5 more files in changeset.
`embedded-kotlin` plugin does not pin dependencies anymore

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

  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
    ./dsl/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
    ./dsl/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>

    • -8
    • +3
    ./dsl/plugins/base/KotlinDslBasePlugin.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
    ./dsl/plugins/base/KotlinDslBasePlugin.kt
    • -37
    • +14
    ./dsl/plugins/dsl/KotlinDslPlugin.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 more file in changeset.
Set -Xprogressive for own libs compilation only

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

    • -4
    • +2
    ./dsl/plugins/dsl/KotlinDslCompilerPlugins.kt
  1. … 4 more files in changeset.
Let `kotlin-dsl` plugin apply the `precompiled-script-plugins` plugin

  1. … 6 more files in changeset.
Fix experimental warning explainer link

as a follow up to #1012

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

    • -1
    • +1
    ./dsl/plugins/dsl/KotlinDslCompilerPlugins.kt
  1. … 1 more file in changeset.
Revisit `kotlin-dsl` experimental kotlin compiler settings warning

- remove option to turn off sam-conversion-for-kotlin-functions

- simplify warning message, linking to the user manual

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

    • -45
    • +38
    ./dsl/plugins/dsl/KotlinDslCompilerPlugins.kt
    • -48
    • +3
    ./dsl/plugins/dsl/KotlinDslPluginOptions.kt
  1. … 1 more file in changeset.
Let the `kotlin-dsl` plugin set -Xjsr305=strict

Just like the rest of the Gradle Kotlin DSL

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

    • -1
    • +4
    ./dsl/plugins/dsl/KotlinDslCompilerPlugins.kt
Remove -Xuse-old-class-files-reading from accessors and scripts compilation

and from IDE script templates

and from kotlin-dsl plugin

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

    • -1
    • +1
    ./dsl/plugins/dsl/KotlinDslCompilerPlugins.kt
  1. … 4 more files in changeset.
Enable kotlinc -Xuse-old-class-files-reading across the board

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

    • -1
    • +1
    ./dsl/plugins/dsl/KotlinDslCompilerPlugins.kt
  1. … 5 more files in changeset.
Enable kotlinc -java-parameters across the board

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

    • -1
    • +4
    ./dsl/plugins/dsl/KotlinDslCompilerPlugins.kt
  1. … 5 more files in changeset.
Move gradleKotlinDslJars() to support

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

  1. … 2 more files in changeset.
kotlin-dsl plugin takes control of jvmTarget

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

    • -3
    • +1
    ./dsl/plugins/dsl/KotlinDslCompilerPlugins.kt
    • -0
    • +11
    ./dsl/plugins/dsl/KotlinDslPluginOptions.kt
`kotlin-dsl` plugin sets target to JVM 8

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

    • -0
    • +3
    ./dsl/plugins/dsl/KotlinDslCompilerPlugins.kt
Let kotlin-dsl plugin not force KotlinCompile tasks realization

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

    • -2
    • +2
    ./dsl/plugins/dsl/KotlinDslCompilerPlugins.kt
Implement `kotlin-dsl` plugin progressive mode switch

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

    • -6
    • +85
    ./dsl/plugins/dsl/KotlinDslCompilerPlugins.kt
    • -2
    • +12
    ./dsl/plugins/dsl/KotlinDslPlugin.kt
    • -0
    • +88
    ./dsl/plugins/dsl/KotlinDslPluginOptions.kt
  1. … 1 more file in changeset.
Polish EmbeddedKotlinPlugin

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

Let the embedded-kotlin and kotlin-dsl plugins warn on different kotlin versions

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

  1. … 1 more file in changeset.
Let `kotlin-dsl` plugin add the `-Xprogressive` Kotlin compiler option

    • -0
    • +1
    ./dsl/plugins/dsl/KotlinDslCompilerPlugins.kt
  1. … 3 more files in changeset.