Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Merge pull request #885 from gradle/bamboo/fix-accessors-caching

Add generated accessors jar to the loaded script cache key

Move all subprojects to the `subprojects` directory

    • -26
    • +0
    ./main/kotlin/org/gradle/kotlin/dsl/GradleDsl.kt
  1. … 507 more files in changeset.
Merge pull request #882 from gradle/bamboo/develop/script-plugin-classpath

Provide correct classpath for script plugins with buildscript blocks

  1. … 1 more file in changeset.
Polish `KotlinScriptFactory`

- Organize imports

- Rename function for clarity

- Rename parameter for clarity

- Favor block form for `if` statement

Remove the now unnecessary `initScriptClassPathFor` function

And simplify `BuildscriptBlockEvaluator`.

Serve correct classpath for `Settings` script plugins

  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. … 1 more file in changeset.
Extract lower-level `KotlinScriptFactory` service

So it can be used to evaluate standalone script plugins in order to

serve their compilation classpaths to the IDE.

Provide correct classpath for script plugins

By executing the script plugin and getting the resulting compilation

classpath from its target `ClassLoaderScope`.

See #110

  1. … 1 more file in changeset.
Remove unnecessary parameter from `KotlinScript` functional type

The target object is already captured in the `scriptTarget`.

Move `getByName(String, KClass<T>)` extension to `NamedDomainObjectCollection<out Any>` for maximum reuse

Provide typed getting by delegate on NamedDomainObjectContainer

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

Fix test asserting changed exception type to IllegalArgumentException

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

Throw IllegalArgumentException instead of IllegalStateException

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

Fix under test type

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

Reuse illegalElementType()

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

Simplify splitting :provider into :provider-plugins further

by moving tasks back into :provider

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

  1. … 3 more files in changeset.
Refine [Named|Polymorphic]DomainObject[Collection|Container] extensions

by making their whole API available with the invoke syntax

and adding reified getByName<T>(name) {} to NamedDomainObjectCollection

and adding reified maybeCreate<T>(name) to PolymorphicDomainObjectContainer

adding more coverage along the way

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

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. … 24 more files in changeset.
Deduplicate project.serviceOf<T>()

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

  1. … 4 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. … 10 more files in changeset.
Refine wording

Fix nested conventions test expectations

Don't generate accessors for `SourceSet` conventions

We should instead migrate our `SourceSet` conventions to extensions

so we can provide a better and forward compatible DSL.

  1. … 1 more file in changeset.
Let the script dependencies resolver report warnings/errors to IntelliJ

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

Refine KotlinBuildScriptDependenciesResolver

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

Polish `KotlinScriptBasePlugin.kt`

Compute buildscript block compilation classpath lazily

Introduce `unsafeLazy` to replace `lazy` wherever possible

And remove the unnecessary thread synchronization overhead.

    • -0
    • +26
    ./main/kotlin/org/gradle/kotlin/dsl/support/unsafeLazy.kt
Compute classpath of root scope last to improve cache locality