Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Add `GeneratePrecompiledScriptPluginAccessors` task skeleton

  1. … 12 more files in changeset.
Move kotlin-dsl in a sub directory

  1. … 1573 more files in changeset.
Let code generation always use same line separators

in order to produce reproducible outputs

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

  1. … 7 more files in changeset.
Change `UserGuideLink` to point to `plugin_reference.html`

Polish `ApiExtensionsGenerator`

Introduce type-safe accessors for plugin ids

Starting with this commit, the Kotlin DSL will generate type-safe

accessors for all plugin ids found in the `buildSrc` classpath.

So instead of writing:

```kotlin

plugins {

id("gradlebuild.strict-compile")

id("gradlebuild.classcycle")

}

```

One can write:

```kotlin

plugins {

gradlebuild.`strict-compile`

gradlebuild.classcycle

}

```

All while enjoying content assist and source code navigation all the

way down to the plugin implementation class.

  1. … 17 more files in changeset.
Suppress warnings in generated extensions

  1. … 1 more file in changeset.
Extract GradleApiMetadata into .support internal package

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

  1. … 3 more files in changeset.
Polish `ApiTypeProvider`

- Deduplicate expression

Polish `ApiTypeProvider.isSignificantDeclaration`

Polish `ApiExtensionsGenerator`

- Fix missing plural in kdoc

- Replace `list[index + 1]` by `list.last()` for clarity

Reuse `unsafeLazy`

Polish `ApiExtensionsGenerator`

- Remove unnecessary empty lines

Polish `ApiTypeProvider`

- Replace `coll.size - 1` by `coll.lastIndex`

- Join lines to improve flow

Polish `ApiExtensionsGenerator`

- Rename `asArguments` => `asArgument`

- Replace if/else chain by when expression

- Compose method

- Put arguments of long call expression on separate lines

Polish `ApiTypeProvider`

- Extract complex expression into explaining method

Polish `ApiExtensionsGenerator`

- Extract complex expression into explaining method

Add TODO for reified generics extensions generation policy

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

Refine ApiExtensionsGenerator.kt

- ApiType.isSAM is enough, no more need for ApiTypeUsage.isGradleAction

- rename function parameter and related function for clarity

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

Polish `ApiExtensionsGenerator.kt`

- Replace complex `if/else/if` chain to `when` expression

Polish `ApiTypeProvider.kt`

- Reuse `Int.contains`

  1. … 1 more file in changeset.
Refine ApiTypeProvider

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

Pass Gradle API metadata jar argument explicitly

  1. … 1 more file in changeset.
Remove unnecessary `KotlinFileCompiler` type hierarchy

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

- Replace complex if/else/if by when

- Compose method

- Autoformat

Polish `kotlinDslApiExtensionsDeclarationsFor`

- Compose method

- Flip `&&` to execute cheaper `isPublic` before `spec.isSatisfiedBy`

Merge branch 'develop' into eskatos/gradle-api-gen/kclass-and-groovy-named-arguments

  1. … 3 more files in changeset.
Polish `GradleApiExtensions`

- Inline pair destructuring for clarity

- Compose method

Prefer snake-case links even if redirection is present

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

Fix broken plugins kdoc links and add integration test

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

  1. … 1 more file in changeset.