ProjectExtensions.kt

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Convert to multi-project build in preparation to adding new modules

See #304

  1. … 263 more files in changeset.
Polish `KotlinBuildScript`

- Move `#apply` to `ProjectExtensions`

- Move `GradleDsl` to its own file

  1. … 2 more files in changeset.
Add support for `PropertyState` delegated properties

And `ConfigurableFileCollection` as well.

See #344

  1. … 2 more files in changeset.
Document commonly used extensions

  1. … 1 more file in changeset.
Rename `KotlinDependencyHandler => DependencyHandlerScope`

  1. … 4 more files in changeset.
Explicit return types

On members for which such explicitness is required by dokka

Unify handling of JIT and AOT project accessors

This is the first step toward fixing #340.

Resolves #338

Resolves #339

  1. … 27 more files in changeset.
Polish

- Normalise placement of `private`, `protected`, `internal` and

`inline` modifiers

  1. … 42 more files in changeset.
Make `Project#configure<T>` honour `DeferredConfigurable`

Resolves #327

  1. … 1 more file in changeset.
Remove outdated comments

Make generated accessors visible to KotlinBuildScriptModel clients

See #234

  1. … 23 more files in changeset.
Remove no longer necessary `KotlinRepositoryHandler`

  1. … 3 more files in changeset.
Polish top-level definitions, parameter lists and exceptions

* Separate top-level definitions by two lines

* Segregate visibility modifier of top-level definition to

its own line

* Prefer starting long parameter lists at the next line (more

sustainable in face of method renames)

* Remove unnecessary `Exception` suffix from class names

* Remove unnecessary prefixes from field names

* Use better name for exception variables

  1. … 38 more files in changeset.
Remove inline modifier from commonly used APIs

To minimize compilation overhead.

Introduce `gradleScriptKotlinApi()` dependency

Resolves #118

  1. … 2 more files in changeset.
Favor extension invocation syntax

Prefer non-null assertions and explicit types

Over implicit platform types.

  1. … 3 more files in changeset.
Polish Kotlin sources

- Add Apache license header where missing

- Replace wildcard imports with individual imports

- Organize import statements

- Wrap code at 120 chars

- Wrap KDoc at 90 chars

- Eliminate newlines between KDoc tags

  1. … 20 more files in changeset.
Support project property delegates

See #60

Add Kotlin Hello World sample

- improve repositories dsl

- introduce `apply { ... }`

  1. … 7 more files in changeset.
Support for `buildscript` section (wip)

  1. … 10 more files in changeset.
Accept dependency notations other than Strings

Extend `configure<T> {}` to extensions (NPI)

Introduce `the<T>()` convention/extension accessor

As to provide a convenient way to access a convention property:

the<JavaPluginConvention>().sourceSets

Introduce `Project.applyFrom(script)`

Sugar for `apply { it.from(script) }`.

Wrap KDoc at 90 characters

  1. … 1 more file in changeset.
Add docs to extensions used by hello-world sample

Add sugar for `dependencies` and `repositories`

Polish sources

- Organize imports manually for clarity

- Use expression body vs expression block where suitable

  1. … 8 more files in changeset.
Introduce Project.task<T>(name) extension

without a configuration closure for convenience in cases that do not

necessitate it.