DefaultProjectSchemaProvider.kt

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Make query methods for deprecation state of core configurations public

This is to allow plugin authors to make use of this information.

The methods to actually deprecate configurations stay internal,

as they are bound to the deprecation mechanism of Gradle core.

And thus they may only be used for configurations of Gradle's core

plugins.

  1. … 12 more files in changeset.
Make query methods for deprecation state of core configurations public

This is to allow plugin authors to make use of this information.

The methods to actually deprecate configurations stay internal,

as they are bound to the deprecation mechanism of Gradle core.

And thus they may only be used for configurations of Gradle's core

plugins.

  1. … 12 more files in changeset.
Fix Kotlin DSL accessor for `android.kotlinOptions`

And introduce a stricter accessor type precedence order.

The accessor type is the first public Kotlin type found in the given extension

type hierarchy considering all the types in the following order:

* the extension type itsef

* its superclasses excluding `java.lang.Object`

* all supported interfaces ordered by:

- subtyping first:

subtypes before supertypes

- where it's found in the class hierarchy:

subclass interfaces before superclass interfaces

    • -23
    • +60
    ./DefaultProjectSchemaProvider.kt
  1. … 4 more files in changeset.
Fix Kotlin DSL accessor for `android.kotlinOptions`

And introduce a stricter accessor type precedence order.

The accessor type is the first public Kotlin type found in the given extension

type hierarchy considering all the types in the following order:

* the extension type itsef

* its superclasses excluding `java.lang.Object`

* all supported interfaces ordered by:

- subtyping first:

subtypes before supertypes

- where it's found in the class hierarchy:

subclass interfaces before superclass interfaces

Fixes #11083

    • -27
    • +61
    ./DefaultProjectSchemaProvider.kt
  1. … 3 more files in changeset.
Add test for deprecated configuration accessors

This commit adds a test that makes sure that the

`kotlin.Deprecated` annotation is properly added

to the extension methods for deprecated configu-

rations.

  1. … 1 more file in changeset.
Add test for deprecated configuration accessors

This commit adds a test that makes sure that the

`kotlin.Deprecated` annotation is properly added

to the extension methods for deprecated configu-

rations.

  1. … 1 more file in changeset.
Polish project schema provider

Polish project schema provider

Polish project schema provider

Add `@Deprecated` to generated configuration accessors

  1. … 11 more files in changeset.
Add `@Deprecated` to generated configuration accessors

  1. … 11 more files in changeset.
Add `@Deprecated` configurations to the Kotlin accessors

WIP - Add more details

  1. … 9 more files in changeset.
Gracefully handle lambdas registered as extensions

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

  1. … 1 more file in changeset.
Gracefully handle lambdas registered as extensions

and coverage for lost type info with typed Java and Kotlin lambdas

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

  1. … 1 more file in changeset.
Gracefully handle lambdas registered as extensions

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

  1. … 1 more file in changeset.
Gracefully handle lambdas registered as extensions

and coverage for lost type info with typed Java and Kotlin lambdas

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

  1. … 1 more file in changeset.
Gracefully handle lambdas registered as extensions

and coverage for lost type info with typed Java and Kotlin lambdas

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

  1. … 1 more file in changeset.
Gracefully handle lambdas registered as extensions

and coverage for lost type info with typed Java and Kotlin lambdas

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

  1. … 1 more file in changeset.
Gracefully handle lambdas registered as extensions

and coverage for lost type info with typed Java and Kotlin lambdas

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

  1. … 1 more file in changeset.
Refine DefaultProjectSchemaProvider

by reworking toFirstKotlinPublicOrSelf() and adding an explaining comment

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

Let Kotlin DSL use first kotlin public type for accessors

on all containers (tasks, extensions, etc..)

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

  1. … 1 more file in changeset.
Let Kotlin DSL use first kotlin public type for accessors

on all containers (tasks, extensions, etc..)

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

  1. … 1 more file in changeset.
Let Kotlin DSL use first kotlin public type for task accessors

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

  1. … 1 more file in changeset.
Merge gradle/kotlin-dsl@v1.1.1 into eskatos/kotlin-dsl-merge

commit 'e57395d8378'

# Conflicts:

# build.gradle.kts

# gradle/wrapper/gradle-wrapper.properties

# samples/ant/gradle/wrapper/gradle-wrapper.properties

# samples/build-cache/gradle/wrapper/gradle-wrapper.properties

# samples/build-scan/gradle/wrapper/gradle-wrapper.properties

# samples/buildSrc-plugin/gradle/wrapper/gradle-wrapper.properties

# samples/code-quality/gradle/wrapper/gradle-wrapper.properties

# samples/composite-builds/gradle/wrapper/gradle-wrapper.properties

# samples/copy/gradle/wrapper/gradle-wrapper.properties

# samples/domain-objects/gradle/wrapper/gradle-wrapper.properties

# samples/extra-properties/gradle/wrapper/gradle-wrapper.properties

# samples/gradle-plugin/gradle/wrapper/gradle-wrapper.properties

# samples/gradle-plugin/plugin/gradle/wrapper/gradle-wrapper.properties

# samples/groovy-interop/gradle/wrapper/gradle-wrapper.properties

# samples/hello-android/gradle/wrapper/gradle-wrapper.properties

# samples/hello-coroutines/gradle/wrapper/gradle-wrapper.properties

# samples/hello-js/gradle/wrapper/gradle-wrapper.properties

# samples/hello-kapt/gradle/wrapper/gradle-wrapper.properties

# samples/hello-kotlin/gradle/wrapper/gradle-wrapper.properties

# samples/hello-world/gradle/wrapper/gradle-wrapper.properties

# samples/kotlin-friendly-groovy-plugin/consumer/gradle/wrapper/gradle-wrapper.properties

# samples/kotlin-friendly-groovy-plugin/gradle/wrapper/gradle-wrapper.properties

# samples/kotlin-friendly-groovy-plugin/plugin/gradle/wrapper/gradle-wrapper.properties

# samples/maven-plugin/gradle/wrapper/gradle-wrapper.properties

# samples/maven-publish/gradle/wrapper/gradle-wrapper.properties

# samples/model-rules/gradle/wrapper/gradle-wrapper.properties

# samples/modularity/gradle/wrapper/gradle-wrapper.properties

# samples/multi-kotlin-project-config-injection/gradle/wrapper/gradle-wrapper.properties

# samples/multi-kotlin-project-with-buildSrc/gradle/wrapper/gradle-wrapper.properties

# samples/multi-kotlin-project/gradle/wrapper/gradle-wrapper.properties

# samples/multi-project-with-buildSrc/gradle/wrapper/gradle-wrapper.properties

# samples/precompiled-script-plugin/gradle/wrapper/gradle-wrapper.properties

# samples/precompiled-script-plugin/plugin/gradle/wrapper/gradle-wrapper.properties

# samples/project-properties/gradle/wrapper/gradle-wrapper.properties

# samples/project-with-buildSrc/gradle/wrapper/gradle-wrapper.properties

# samples/provider-properties/gradle/wrapper/gradle-wrapper.properties

# samples/source-control/external/gradle/wrapper/gradle-wrapper.properties

# samples/source-control/sample/gradle/wrapper/gradle-wrapper.properties

# samples/task-dependencies/gradle/wrapper/gradle-wrapper.properties

# samples/testkit/gradle/wrapper/gradle-wrapper.properties

# subprojects/integ-tests/src/test/kotlin/org/gradle/kotlin/dsl/integration/GradleApiExtensionsIntegrationTest.kt

# subprojects/integ-tests/src/test/kotlin/org/gradle/kotlin/dsl/integration/ProjectSchemaAccessorsIntegrationTest.kt

# subprojects/plugins/src/test/kotlin/org/gradle/kotlin/dsl/plugins/dsl/KotlinDslPluginTest.kt

# subprojects/provider/src/test/kotlin/org/gradle/kotlin/dsl/integration/KotlinBuildScriptModelIntegrationTest.kt

# subprojects/provider/src/test/kotlin/org/gradle/kotlin/dsl/integration/ScriptModelIntegrationTest.kt

# subprojects/provider/src/test/kotlin/org/gradle/kotlin/dsl/resolver/SourceDistributionResolverIntegrationTest.kt

# update-wrapper.sh

  1. … 16 more files in changeset.
Import :kotlin-dsl-provider-plugins

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

    • -0
    • +178
    ./DefaultProjectSchemaProvider.kt
  1. … 14 more files in changeset.